Documentation ¶ Index ¶ func HTTPSRedirect(portHTTPS string, fallback http.Handler) http.HandlerFunc func Serve(handler http.Handler, cfg Config) error func TLSConfig(tlsConfig *tls.Config) *tls.Config type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HTTPSRedirect ¶ func HTTPSRedirect(portHTTPS string, fallback http.Handler) http.HandlerFunc func Serve ¶ func Serve(handler http.Handler, cfg Config) error func TLSConfig ¶ func TLSConfig(tlsConfig *tls.Config) *tls.Config Types ¶ type Config ¶ type Config struct { Addr string PortHTTP string PortHTTPS string HTTPOnly bool StoragePath string Domain string Email string Cert string Key string } Source Files ¶ View all Source files https.go Click to show internal directories. Click to hide internal directories.