httphandlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 9 Imported by: 42

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 *logger.UPPLogger, 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 UPP logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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