Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPServer ¶ added in v0.2.0
type HTTPServer interface { ListenAndServe() error ListenAndServeTLS(certFile, keyFile string) error }
HTTPServer defines a returnable interface type for http.Server
func GetStdHTTPServer ¶ added in v0.2.0
func GetStdHTTPServer(addr string, h http.Handler) HTTPServer
GetStdHTTPServer returns a standard net/http.Server configured for a given address and handler, and other sane defaults.
Click to show internal directories.
Click to hide internal directories.