middleware

package
Version: v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Metrics

func Metrics(family string, next http.Handler) http.Handler

Metrics captures request duration, request count and in-flight request count metrics for HTTP handlers. The family field is used to discriminate handlers.

func RequestID

func RequestID(next http.Handler) http.Handler

RequestID appends a unique (sandflake) request ID to each request's X-Request-Id header field, much like Heroku's router does.

Types

This section is empty.

Jump to

Keyboard shortcuts

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