Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerFunc ¶
HandlerFunc is an adapter to allow the use of ordinary functions as a Handler.
func ProxyHandlerFunc ¶ added in v0.2.0
func ProxyHandlerFunc(addr string) HandlerFunc
ProxyHandlerFunc is an adapter to allow the use of a ProxyHandler as a HandlerFunc.
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux is a TCP connection multiplexer which reads the TLS server name indication to route the connection to the matching Handler.
type ProxyHandler ¶ added in v0.2.0
type ProxyHandler struct {
Addr string
}
ProxyHandler is a Handler implementation forwarding the connection bytes to the configured Addr.
type TLSHandler ¶
TLSHandler is a Handler implementation handling TLS connection by using the configured tls.Config.
func TLSHandlerFunc ¶
func TLSHandlerFunc(config *tls.Config, handler HandlerFunc) TLSHandler
TLSHandlerFunc is an adapter to allow the use of a function as a TLSHandler.
Click to show internal directories.
Click to hide internal directories.