handler

package
v0.0.0-...-cde7464 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: MIT 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 NewHelloWorld

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

NewHelloWorld creates a new handler with the given statsd client and logger

func NewPanic

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

NewPanic creates a panic handler with the given statsd client, logger and next handler

func NewTagRequest

func NewTagRequest(next http.Handler) http.Handler

NewTagRequest is a middleware handler which appends X-Request-ID header if one is not already set

func NewValidation

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

NewValidation creates a validation handler with the given statsd client, logger and next handler

Types

type Name

type Name string

Name is the context type for name

Jump to

Keyboard shortcuts

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