Documentation
¶
Index ¶
- func ConfigureSafeTLSConfig() *tls.Config
- func CreateDefaultResilientHTTPServer(addr string, mux http.Handler) *http.Server
- func CreateResilientHTTPServer(addr string, mux http.Handler, tlsConfig *tls.Config, ...) *http.Server
- func GetConnIP(c net.Conn) (string, string)
- func StartHTTPServer(ip string, handler http.Handler)
- func StartMTLSServer(ip, certca, certificate, key string, handler http.Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureSafeTLSConfig ¶
ConfigureSafeTLSConfig creates a default tls.Config that's considered "safe" for HTTP serving
func CreateDefaultResilientHTTPServer ¶
CreateDefaultResilientHTTPServer returns an http.Server configured with default configuration
func CreateResilientHTTPServer ¶
func CreateResilientHTTPServer(addr string, mux http.Handler, tlsConfig *tls.Config, headerReadTimeout, writeTimeout, idleTimeout *time.Duration) *http.Server
CreateResilientHTTPServer returns an http.Server configured with the timeouts provided
func StartMTLSServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.