identitycontext

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestID contextKey = contextKey("request-id")
)

Variables

This section is empty.

Functions

func GetRequestID

func GetRequestID(ctx context.Context) (string, bool)

GetRequestID fetches the request ID from a context (if any).

func InsertRequestID

func InsertRequestID(ctx context.Context, requestID string) context.Context

InsertRequestID inserts requestID into the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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