Documentation ¶
Index ¶
- Constants
- func GetCertificateFile(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
- func GetCertificateLocalhost(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
- func ListenAndServe(e http.Handler) error
- func ListenAndServeTLS(h http.Handler) error
- func NewDispatcher(github, bitbucket http.HandlerFunc) http.HandlerFunc
- func Validate() error
- func Wrap(e *echo.Echo, h http.HandlerFunc) func(echo.Context) error
- type GetCert
- type NopShutdownable
- type Server
- type Shutdownable
Constants ¶
View Source
const ( KeyACMEEnabled = "tls.acme.enabled" KeyACMEPort = "tls.acme.port" KeyACMEHostWhitelist = "tls.acme.host_whitelist" KeyACMECacheDir = "tls.acme.cache_dir" )
View Source
const ( KeyPort = "port" KeyTLSPort = "tls.port" )
View Source
const ( KeyTLSEnabled = "tls.enabled" KeyTLSCertFile = "tls.cert_file" KeyTLSKeyFile = "tls.key_file" )
Variables ¶
This section is empty.
Functions ¶
func GetCertificateFile ¶
func GetCertificateFile(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
func GetCertificateLocalhost ¶
func GetCertificateLocalhost(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
for testing
func ListenAndServe ¶
func ListenAndServeTLS ¶
func NewDispatcher ¶
func NewDispatcher(github, bitbucket http.HandlerFunc) http.HandlerFunc
Types ¶
type GetCert ¶
type GetCert func(*tls.ClientHelloInfo) (*tls.Certificate, error)
type NopShutdownable ¶
type NopShutdownable struct{}
type Shutdownable ¶
Click to show internal directories.
Click to hide internal directories.