Documentation
¶
Overview ¶
Package http provides an HTTP server with a configurable server and router.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Server)
Option is a function to configure a Server.
func WithOptions ¶
WithOptions construct an Option that applies multiple Option to a Server.
func WithRouterOption ¶
WithRouterOption construct an Option that configure the Server's router.
func WithServerOption ¶
WithServerOption construct an Option that configure the Server's http.Server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server carries an HTTP server and a router that can be configured through Option when instantiating it.
Click to show internal directories.
Click to hide internal directories.