Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
A Profile is set of Rules and a Default proxy URL if none of the rules match
The Default proxy URL may be nil indicating that no proxy should be used (direct connection)
type Rule ¶
A Rule allows to match an URL pattern to a proxy URL
The Proxy URL may be nil indicating that no proxy should be used (direct connection)
type Server ¶
type Server struct { // Addr represents the Server address Addr string // contains filtered or unexported fields }
A Server is responsible to serve http requests and proxy them to the direct target or to another proxy based on the active Profile configuration
func (*Server) ListenAndServe ¶
ListenAndServe calls the http.ListenAndServe function with the proxy handler
func (*Server) SetupProfile ¶
SetupProfile sets the active profile
Click to show internal directories.
Click to hide internal directories.