middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestIDHeader = "X-Request-ID"

Functions

func BasicAuth

func BasicAuth(realm string, credentials map[string]string) func(next http.Handler) http.Handler

func GetRequestID

func GetRequestID(ctx context.Context) string

GetReqID returns a request ID from the given context if one is present. Returns the empty string if a request ID cannot be found.

func Logger

func Logger(next http.Handler) http.Handler

func NoCache

func NoCache(next http.Handler) http.Handler

func Recoverer

func Recoverer(next http.Handler) http.Handler

func RequestID

func RequestID(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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