Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route PathPrefix(tpl string) *mux.Route Start() error Stop(ctx context.Context) error }
Server represents a http server
type Server2 ¶ added in v0.0.5
type Server2 struct {
// contains filtered or unexported fields
}
Server2 is a http 2 web server
func (*Server2) HandleFunc ¶ added in v0.0.5
HandleFunc attaches a function to a path
func (*Server2) PathPrefix ¶ added in v0.0.5
PathPrefix attaches a new route url path prefix
type Server3 ¶ added in v0.0.5
type Server3 struct {
// contains filtered or unexported fields
}
Server3 is a http 3 web server
func (*Server3) HandleFunc ¶ added in v0.0.5
HandleFunc attaches a function to a path
func (*Server3) PathPrefix ¶ added in v0.0.5
PathPrefix attaches a new route url path prefix
Click to show internal directories.
Click to hide internal directories.