Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogEntryCtx = "log_entry" HeaderProxyAuthorization = "Proxy-Authorization" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientTimeouts ¶
type ClientTimeouts struct {
ReadTimeout time.Duration `long:"read" env:"READ" default:"0s" description:"Client read timeout" json:"readTimeout"`
WriteTimeout time.Duration `long:"write" env:"WRITE" default:"0s" description:"Client write timeout" json:"writeTimeout"`
KeepAlivePeriod time.Duration `long:"keepalive-period" env:"KEEPALIVE_PERIOD" default:"1m" description:"Client keepalive period" json:"keepAlivePeriod"`
}
type Config ¶
type Config struct {
AddrString string `short:"a" long:"addr" env:"ADDR" description:"Proxy address" default:"localhost:3128" json:"addr"`
Addr *net.TCPAddr `no-flag:"yes" json:"-"`
DownstreamProxyURLString string `` /* 181-byte string literal not displayed */
DownstreamProxyURL *url.URL `no-flag:"yes" json:"-"`
DownstreamProxyDialRetries int `` /* 201-byte string literal not displayed */
DownstreamProxyAuth DownstreamProxyAuth `` /* 138-byte string literal not displayed */
Kerberos Kerberos `group:"Kerberos options" namespace:"kerberos" env-namespace:"KERBEROS" json:"kerberos"`
Timeouts Timeouts `group:"Timeouts" namespace:"timeouts" env-namespace:"TIMEOUTS" json:"timeouts"`
PingURLString string `` /* 136-byte string literal not displayed */
PingURL *url.URL `no-flag:"yes" json:"-"`
Mode Mode `short:"m" long:"mode" env:"MODE" description:"Escobar mode" default:"auto" json:"mode"`
}
type DownstreamProxyAuth ¶
type DownstreamProxyAuth struct {
User string `short:"u" long:"user" env:"USER" description:"Downstream Proxy user" json:"user"`
Password string `short:"p" long:"password" env:"PASSWORD" description:"Downstream Proxy password" json:"password"`
Keytab string `short:"k" long:"keytab" env:"KEYTAB" description:"Downstream Proxy path to keytab-file" json:"keytab"`
}
type DownstreamProxyTimeouts ¶
type DownstreamProxyTimeouts struct {
DialTimeout time.Duration `long:"dial" env:"DIAL" default:"10s" description:"Downstream proxy dial timeout" json:"dialTimeout"`
ReadTimeout time.Duration `long:"read" env:"READ" default:"0s" description:"Downstream proxy read timeout" json:"readTimeout"`
WriteTimeout time.Duration `long:"write" env:"WRITE" default:"0s" description:"Downstream proxy write timeout" json:"writeTimeout"`
KeepAlivePeriod time.Duration `` /* 130-byte string literal not displayed */
}
type Kerberos ¶
type Kerberos struct {
Realm string `long:"realm" env:"REALM" description:"Kerberos realm" value-name:"EVIL.CORP" json:"realm"`
KDCString string `long:"kdc" env:"KDC" description:"Key Distribution Center (KDC) address" value-name:"kdc.evil.corp:88" json:"kdc"`
KDC *net.TCPAddr `no-flag:"yes" json:"-"`
}
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
type ServerTimeouts ¶
type ServerTimeouts struct {
ReadTimeout time.Duration `long:"read" env:"READ" default:"0s" description:"HTTP server read timeout" json:"readTimeout"`
ReadHeaderTimeout time.Duration `long:"read-header" env:"READ_HEADER" default:"30s" description:"HTTP server read header timeout" json:"readHeaderTimeout"`
WriteTimeout time.Duration `long:"write" env:"WRITE" default:"0s" description:"HTTP server write timeout" json:"writeTimeout"`
IdleTimeout time.Duration `long:"idle" env:"IDLE" default:"1m" description:"HTTP server idle timeout" json:"idleTimeout"`
}
type Timeouts ¶
type Timeouts struct {
Server ServerTimeouts `group:"Server timeouts" namespace:"server" env-namespace:"SERVER" json:"server"`
Client ClientTimeouts `group:"Client timeouts" namespace:"client" env-namespace:"CLIENT" json:"client"`
DownstreamProxy DownstreamProxyTimeouts `group:"Downstream Proxy timeouts" namespace:"downstream" env-namespace:"DOWNSTREAM" json:"downstreamProxy"`
}
Click to show internal directories.
Click to hide internal directories.