Documentation
¶
Overview ¶
Package server provides a generic server implementation which is used by the different applications to serve their endpoints.
Index ¶
Constants ¶
View Source
const ( BuildInfoRoute = buildinfo.MetricName HealthCheckRoute = "healthcheck" FaviconRoute = "favicon" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Option ¶
func WithBuildInfo ¶
func WithHealthChecker ¶
func WithHealthChecker(hc *healthcheck.Checker) Option
func WithNotFoundHandler ¶
func WithRoutesRegisterer ¶
func WithRoutesRegisterer(r serv.RoutesRegisterer) Option
type RegisterRouteLogger ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RouteHandler ¶
func (srv *Server) RouteHandler() serv.RouteHandler
Click to show internal directories.
Click to hide internal directories.