Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AliasExceptions ¶
type AliasExceptions []string
func (AliasExceptions) NotAliasException ¶
func (e AliasExceptions) NotAliasException(originalURL string) bool
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func (*Backend) HealthCheck ¶
type ExceptionRoute ¶
type ExceptionRoute struct { Path string Method string AliasExceptions AliasExceptions Restricted bool }
func (*ExceptionRoute) IsException ¶
func (r *ExceptionRoute) IsException(originalURL, method string) (bool, error)
type ExceptionRoutes ¶
type ExceptionRoutes []*ExceptionRoute
type ServerPool ¶
type ServerPool struct {
// contains filtered or unexported fields
}
func NewServerPool ¶
func NewServerPool(config *Config, logger log.Logger) (*ServerPool, error)
func (*ServerPool) AddBackend ¶
func (s *ServerPool) AddBackend(backend *Backend)
func (*ServerPool) LoadBalancer ¶
func (s *ServerPool) LoadBalancer(writer http.ResponseWriter, request *http.Request)
func (*ServerPool) ServeHTTP ¶
func (s *ServerPool) ServeHTTP(writer http.ResponseWriter, request *http.Request)
Click to show internal directories.
Click to hide internal directories.