Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilConfig = errors.New("nil config parameter supplied") ErrDuplicateListeners = errors.New("duplicate listener addr and port but different type") ErrUnknownListenerType = errors.New("unknown listener type") ErrListenerNotFound = errors.New("listener not found") ErrProxychainNotFound = errors.New("proxychain for backend is not defined") ErrBackendInitFailed = errors.New("backend initialization is not defined") ErrHostListenerClash = errors.New("duplicate host already attached to listener") ErrAttachSiteToListenerFailed = errors.New("failed to attach site to listener") )
View Source
var (
ErrDirectProxyAfterNonDirectProxy = errors.New("direct connection does not make sense as non-first member of proxychain")
)
Functions ¶
Types ¶
type ErrInvalidProxySpec ¶
type ErrInvalidProxySpec struct {
// contains filtered or unexported fields
}
ErrInvalidProxySpec is the common type for proxy construction errors.
func (ErrInvalidProxySpec) Cause ¶
func (e ErrInvalidProxySpec) Cause() error
func (ErrInvalidProxySpec) Error ¶
func (e ErrInvalidProxySpec) Error() string
type HTTPBackend ¶
type HTTPBackend struct {
// contains filtered or unexported fields
}
func NewHTTPBackend ¶
func NewHTTPBackend(config config.BackendConfig, proxychain Proxychain) (*HTTPBackend, error)
func (HTTPBackend) ServeHTTP ¶
func (h HTTPBackend) ServeHTTP(writer http.ResponseWriter, request *http.Request)
ServerHTTP implements http.Handler.
type HTTPEdgeListener ¶
type HTTPEdgeListener struct {
// contains filtered or unexported fields
}
type Proxychain ¶
type Proxychain interface {
Dialer() proxy.ContextDialer
}
Proxychain provides an interface to constructed chains of proxies.
func NewProxychainFromConfig ¶
func NewProxychainFromConfig(cfg []config.Proxy) (Proxychain, error)
NewProxychainFromConfig creates a new proxychain from the supplied list of configs.
type ServerCommand ¶
type ServerCommand struct{}
Click to show internal directories.
Click to hide internal directories.