# README
Srv
Go Web Server with graceful termination, configurable health and info endpoints
# Functions
HealthHandler returns basic system health information.
InfoHandler returns basic system runtime information.
MethodNotAllowedHandler returns the handler for a request where the HTTP verb is not allowed.
New creates a new instance of the router.
NotFoundHandler returns the handler for a not found resource.
OptionAppEnv is used to set specific security runtime environment variables.
OptionContextPath is used to set a prefix to the path of all requests on the server.
PanicHandler returns the handler for an application panic during a request This overrides the default httprouter handler to not expose stacktraces from the application during an exception.
RouteHandler returns the handler for listing out the avaliable routes for the system including their HTTP verbs.
# Variables
ErrServerAlreadyRunning is the error returned when the server is already running.
ErrServerStopped is the error returned when the server is not running.
# Structs
HealthMetric is the struct for a health metric.
HealthMetricResult is the returning struct for calling the HealthMetricHandler.
HealthResponse is the response model for the HealthHandler endpoint.
InfoMetric is the struct for a info metric.
InfoResponse is the response model for the InfoHandler endpoint.
InfoResponseGC is the response model for the GC in the InfoResponse struct.
Option is the struct for server based options.
RouteInfo is the response object for a single route info object.
Server struct containing the httprouter routing handler and the negroni middleware framework.
# Type aliases
HealthMetricHandler is the handler func that needs to be implemented for adding custom health checks.
InfoMetricHandler is the handler func that needs to be implemented for adding custom info metrics.