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 (*Server) AddContext ¶
AddContext adds the accociated 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 accociated Servers URL routes to the provided router with the provided context.Context.
func (*Server) HealthCheckHandler ¶
func (s *Server) HealthCheckHandler(rw http.ResponseWriter, req *http.Request)
HealthCheckHandler a http handler return 200 OK when server health is fine.
Click to show internal directories.
Click to hide internal directories.