Versions in this module Expand all Collapse all v0 v0.1.0 Apr 6, 2017 Changes in this version + func Main() + type Authenticator interface + Authenticate func(username, password string) error + type CertManager struct + RejectNilSni bool + func (cm *CertManager) Add(host string, certfile, keyfile string, pem string, cafile, capem string) error + func (cm *CertManager) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error) + func (cm *CertManager) GetConfigForClient(hello *tls.ClientHelloInfo) (*tls.Config, error) + func (cm *CertManager) HostPolicy(_ context.Context, host string) error + type Config struct + Default struct{ ... } + HTTP struct{ ... } + HTTP2 []struct{ ... } + type FlushWriter struct + func (fw FlushWriter) Write(p []byte) (n int, err error) + type HTTP2Handler struct + Dial func(network, address string) (net.Conn, error) + DisableProxy bool + Fallback *url.URL + ServerNames []string + func (h *HTTP2Handler) ProxyAuthorizationRequired(rw http.ResponseWriter, req *http.Request) + func (h *HTTP2Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type HTTPHandler struct + Dial func(network, address string) (net.Conn, error) + func (h *HTTPHandler) ProxyAuthorizationRequired(rw http.ResponseWriter, req *http.Request) + func (h *HTTPHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type HtpasswdFileAuth struct + CacheSize uint + FilePath string + func (h *HtpasswdFileAuth) Authenticate(username, password string) error + type MultiSNHandler struct + Handlers map[string]http.Handler + ServerNames []string + func (h *MultiSNHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type SimplePAM struct + CacheSize uint + func (p *SimplePAM) Authenticate(username, password string) error + type TCPListener struct + func (ln TCPListener) Accept() (c net.Conn, err error)