request_id

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestIDHeader = "X-Request-Id"
	RequestIDLogKey = "request_id"
)

Variables

This section is empty.

Functions

func GetRequestID

func GetRequestID(ctx context.Context) string

func GetRequestIDFromRequestHeader

func GetRequestIDFromRequestHeader(r *http.Request) string

func SetRequestID

func SetRequestID(ctx context.Context, reqID string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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