Versions in this module Expand all Collapse all v1 v1.4.0 Jan 19, 2021 v1.3.0 Jan 13, 2021 Changes in this version + const KeyValues + func IsShutdown(err error) bool + func NewRequestError(err error, status int) error + func NewShutdownError(message string) error + type ErrorRequest struct + Err error + Fields []FieldError + Status int + func (err *ErrorRequest) Error() string + type ErrorResponse struct + Error string + Fields []FieldError + type FieldError struct + Error string + Field string + type Handler func(context.Context, http.ResponseWriter, *http.Request) error + type Middleware func(Handler) Handler + type Router struct + func NewRouter(shutdownCh chan os.Signal, log *log.Logger, mw ...Middleware) *Router + func (a *Router) Handle(method, url string, h Handler, mw ...Middleware) + func (a *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (a *Router) SignalShutdown() + type Values struct + Start time.Time + StatusCode int + TraceID string