handlers

package
v0.0.0-...-cd796bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBangHandler

func NewBangHandler() http.Handler

NewBangHandler creates a handler which panics

func NewCorrelationHandler

func NewCorrelationHandler(next http.Handler) http.Handler

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

func NewHelloWorldHandler(statsd *statsd.Client, logger *logrus.Logger) http.Handler

NewHelloWorldHandler creates a new handler with the given logger and statsD client

func NewPanicHandler

func NewPanicHandler(statsd *statsd.Client, logger *logrus.Logger, next http.Handler) http.Handler

func NewValidationHandler

func NewValidationHandler(statsd *statsd.Client, logger *logrus.Logger, next http.Handler) http.Handler

NewValidationHandler creates a new Validation handler with the given statsD client and logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL