Documentation
¶
Index ¶
- func NewBangHandler() http.Handler
- func NewCorrelationHandler(next http.Handler) http.Handler
- func NewHelloWorldHandler(statsd *statsd.Client, logger *logrus.Logger) http.Handler
- func NewPanicHandler(statsd *statsd.Client, logger *logrus.Logger, next http.Handler) http.Handler
- func NewValidationHandler(statsd *statsd.Client, logger *logrus.Logger, next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBangHandler ¶
NewBangHandler creates a handler which panics
func NewCorrelationHandler ¶
NewCorrelationHandler is a middleware handler which appends a X-Request-ID header if one is not already set before calling the next handler in the chain
func NewHelloWorldHandler ¶
NewHelloWorldHandler creates a new handler with the given logger and statsD client
func NewPanicHandler ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.