Documentation ¶
Index ¶
- func FileServer(root string) func(*http.Server)
- func GetFreePort() (int, error)
- func HTTPS(interupt context.Context, domain, email string, opts ...func(*http.Server)) error
- func HandleFunc(path string, f func(w http.ResponseWriter, r *http.Request)) func(*http.Server)
- func HandleStats(path string, stats func() interface{}) func(*http.Server)
- func Handler(h http.Handler) func(*http.Server)
- func HandlerFunc(handlerFunc func(w http.ResponseWriter, r *http.Request)) func(*http.Server)
- func HealthCheck(handler func(w http.ResponseWriter, r *http.Request)) func(*http.Server)
- func Metrics() func(*http.Server)
- func Mux(config func(*http.ServeMux)) func(*http.Server)
- func Port(labels ...string) (int, error)
- func Pprof() func(*http.Server)
- func Serve(interupt context.Context, port int, opts ...func(*http.Server)) (context.Context, error)
- func ServeHTTP(interupt context.Context, port int, opts ...func(*http.Server)) chan error
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileServer ¶
func GetFreePort ¶
func HandleFunc ¶
func HandleStats ¶
func HandlerFunc ¶
func HealthCheck ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.