Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableExpVarEndpoints ¶
func EnableExpVarEndpoints(ws WebServer)
EnableExpVarEndpoints exposes expvar http endpoints.
func EnablePprofEndpoints ¶
func EnablePprofEndpoints(ws WebServer)
EnablePprofEndpoints exposes pprof http endpoints.
func SetDefaultWebServer ¶
SetDefaultWebServer sets default server instance is not thread-safe
Types ¶
type SimpleWebServer ¶
type SimpleWebServer struct { *http.Server *http.ServeMux // contains filtered or unexported fields }
SimpleWebServer is naive implementation of WebServer. is not thread-safe
func NewSimpleWebServer ¶
func NewSimpleWebServer(addr string) *SimpleWebServer
NewSimpleWebServer builds SimpleWebServer.
func (*SimpleWebServer) Serve ¶
func (sw *SimpleWebServer) Serve() error
Serve starts server. TODO: handle errors properly
Click to show internal directories.
Click to hide internal directories.