Documentation
¶
Index ¶
- Variables
- func DefaultHeaderInjectors() []reverseproxy.HeaderInjector
- func DefaultProxyServer(handler http.Handler, tlsConfig *tls.Config, verboseLogs bool) *proxyserver.Server
- func DefaultReverseProxyHTTPHandler(forwardTo *url.URL) *reverseproxy.HTTPHandler
- func DefaultTLSConfig(certFile string, keyFile string) (*tls.Config, error)
- func InitFingerprint(verboseLogs bool)
- func Run()
- func StartPrometheusClient(listenAddr string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProxyServerLog = log.New(os.Stderr, "[proxyserver] ", logFlags) HTTPServerLog = log.New(os.Stderr, "[http] ", logFlags) PrometheusLog = log.New(os.Stderr, "[metrics] ", logFlags) ReverseProxyLog = log.New(os.Stderr, "[reverseproxy] ", logFlags) FingerprintLog = log.New(os.Stderr, "[fingerprint] ", logFlags) DefaultLog = log.New(os.Stderr, "[fingerproxy] ", logFlags) PrometheusRegistry = prometheus.NewRegistry() HTTPIdleTimeout = 180 * time.Second HTTPReadTimeout = 60 * time.Second HTTPWriteTimeout = 60 * time.Second ReverseProxyFlushInterval = 100 * time.Millisecond GetHeaderInjectors = DefaultHeaderInjectors BuildCommit = "GIT_COMMIT_PLACEHOLDER" BuildTag = "GIT_TAG_PLACEHOLDER" )
Functions ¶
func DefaultHeaderInjectors ¶
func DefaultHeaderInjectors() []reverseproxy.HeaderInjector
func DefaultProxyServer ¶
func DefaultReverseProxyHTTPHandler ¶
func DefaultReverseProxyHTTPHandler(forwardTo *url.URL) *reverseproxy.HTTPHandler
func InitFingerprint ¶
func InitFingerprint(verboseLogs bool)
func StartPrometheusClient ¶
func StartPrometheusClient(listenAddr string)
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
example
|
|
|
customize-fingerprint
command
|
|
|
pkg
|
|
|
http2
Package http2 implements the HTTP/2 protocol.
|
Package http2 implements the HTTP/2 protocol. |
|
http2/h2c
Package h2c implements the unencrypted "h2c" form of HTTP/2.
|
Package h2c implements the unencrypted "h2c" form of HTTP/2. |
|
http2/h2i
command
The h2i command is an interactive HTTP/2 console.
|
The h2i command is an interactive HTTP/2 console. |
|
http2/hpack
Package hpack implements HPACK, a compression format for efficiently representing HTTP header fields in the context of HTTP/2.
|
Package hpack implements HPACK, a compression format for efficiently representing HTTP header fields in the context of HTTP/2. |
Click to show internal directories.
Click to hide internal directories.