Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyService ¶
func NewProxyService( subservices []Subservice, sharedListener net.Listener, logger log.Logger, ) (internal.Service, error)
NewProxyService create a new HTTP proxy service.
Types ¶
type Subservice ¶
type Subservice struct { Connector http.Connector ConnectorID string RetrieveCredentials internal.CredentialsRetriever AuthenticateURLsMatching []*regexp.Regexp }
Subservice handles specific traffic within an HTTP proxy service, using traffic filtering rules and a devoted Connector.
func (*Subservice) Matches ¶
func (sub *Subservice) Matches(url string) bool
Matches returns true if any of the patterns in the Subservice's AuthenticateURLsMatching match the given url.
Click to show internal directories.
Click to hide internal directories.