Documentation
¶
Overview ¶
Package proxy implements an HTTP forward proxy that exclusively listens on a UNIX domain socket for client requests. It uses a single http.Client to proxy requests, enabling connection pooling. Optionally, the proxy can expose metrics via prometheus client library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppVersion = "0.8.x-dev"
AppVersion is set at compile time via make / ldflags
Functions ¶
Types ¶
type Instance ¶
Instance provides state storage for a single proxy instance.
func NewProxyInstance ¶
NewProxyInstance validates supplied Settings and returns a ready-to-run proxy instance.
type Settings ¶
type Settings struct {
SocketPath string
SocketMode int
ClientTimeout int
MaxConnsPerHost int
MaxIdleConns int
MaxIdleConnsPerHost int
IdleConnTimeout int
SocketReadTimeout int
SocketWriteTimeout int
PrintVersion bool
NoLogTimeStamps bool
RemoteHTTPS bool
ForceRemoteHost string
InsecureSkipVerify bool
}
Settings configure a Instance and need to be passed to NewProxyInstance().
Click to show internal directories.
Click to hide internal directories.