middlewares

package
v0.0.0-...-bd7b10a Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrelationID

func CorrelationID(next http.Handler) http.Handler

CorrelationID returns a middleware that add a correlation identifier to the HTTP request.

func Logger

func Logger(log zerolog.Logger) func(next http.Handler) http.Handler

Logger returns a zero allocation JSON logger middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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