requestUUID

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReqID

func GetReqID(ctx context.Context) (reqID 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 Middleware

func Middleware(next http.Handler) http.Handler

Middleware that injects a request UUID into the context of each request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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