Documentation ¶
Index ¶
- func HTTPRedirect(next http.Handler) http.Handler
- func NewListener(l net.Listener, storage TLSStorage, caCert *x509.Certificate, ...) (net.Listener, http.Handler, error)deprecated
- func NewListenerWithChain(l net.Listener, storage TLSStorage, caCert []*x509.Certificate, ...) (net.Listener, http.Handler, error)
- func NewTCPListener(ip string, port int) (net.Listener, error)
- func OnlyAllow(str string) func(...string) []string
- type Config
- type SetFactory
- type TLSFactory
- type TLSStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPRedirect ¶ added in v0.2.0
Approach taken from letsencrypt, except manglePort is specific to us
func NewListener
deprecated
added in
v0.2.0
func NewListenerWithChain ¶ added in v0.3.6
func NewTCPListener ¶ added in v0.2.0
Types ¶
type SetFactory ¶ added in v0.2.0
type SetFactory interface {
SetFactory(tls TLSFactory)
}
type TLSFactory ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.