middleware

package
v0.0.0-...-bade21a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest() func(http.Handler) http.Handler

LogRequest returns a middleware to log requests.

func Recover

func Recover() func(http.Handler) http.Handler

Recover returns a middleware to recover from panics

func RequestLogger

func RequestLogger() func(next http.Handler) http.Handler

RequestLogger constructs a middleware to inject logger into request context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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