httphandlers

package
v0.0.0-...-2c20324 Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPMetricsHandler

func HTTPMetricsHandler(registry metrics.Registry, h http.Handler) http.Handler

HTTPMetricsHandler records metrics for each request

func RequestBodyGzipHandler

func RequestBodyGzipHandler(h http.Handler) http.Handler

func TransactionAwareRequestLoggingHandler

func TransactionAwareRequestLoggingHandler(logger *log.Logger, h http.Handler) http.Handler

TransactionAwareRequestLoggingHandler finds a transactionID on a request header or generates one, and makes sure it gets logged using the supplied logrus.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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