Documentation ¶
Overview ¶
Package https provides a simple launcher for a Mux as HTTPS server. The certificate is retrieved from Let's Encrypt https://letsencrypt.org/
Index ¶
- func LogHandler(handler http.Handler) http.HandlerFunc
- func LogHandlerFunc(handler http.HandlerFunc) http.HandlerFunc
- func MustServeHttp(mux *http.ServeMux)
- func MustServeHttpPort(addr string, mux *http.ServeMux)
- func MustServeHttps(certDir string, mux *http.ServeMux, hostnames ...string)
- func MustServeHttpsPort(httpAddr, httpsAddr string, certDir string, mux *http.ServeMux, ...)
- func WaitForIntOrTerm()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogHandler ¶
func LogHandler(handler http.Handler) http.HandlerFunc
func LogHandlerFunc ¶
func LogHandlerFunc(handler http.HandlerFunc) http.HandlerFunc
func MustServeHttp ¶
func MustServeHttpPort ¶
func MustServeHttpsPort ¶
func WaitForIntOrTerm ¶
func WaitForIntOrTerm()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.