middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logging

func Logging(next http.Handler) http.Handler

func RequestID

func RequestID(next http.Handler) http.Handler

RequestID always generates the ID server-side rather than trusting a client-supplied X-Request-ID header, which would otherwise let a caller inject arbitrary values into our logs.

func RequestIDFromContext

func RequestIDFromContext(ctx context.Context) string

RequestIDFromContext returns the request ID set by RequestID, or "" if the middleware wasn't applied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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