Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Config *config.Config Handler http.Handler Routes []WithRoutes }
Config defines a Server's configuration settings.
type Server ¶
type Server struct { Config *Config // contains filtered or unexported fields }
Server is our HTTP server implementation.
func NewServer ¶
NewServer constructs a server from the provided parameters.
func (*Server) AddContext ¶
AddContext adds the associated server context with cancel to the the provided httprouter.Handle. When the handler is done, the per Request context is cancelled.
func (*Server) AddRoutes ¶
AddRoutes add the associated Servers URL routes to the provided router with the provided context.Context.
Click to show internal directories.
Click to hide internal directories.