header

package
v0.33.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderAsertoRequestID          = CtxKey(textproto.CanonicalMIMEHeaderKey("Aserto-Request-Id"))
	HeaderAsertoRequestIDLowercase = CtxKey(strings.ToLower(string(HeaderAsertoRequestID)))
)

Functions

func ContextWithRequestID

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

func ExtractRequestID

func ExtractRequestID(ctx context.Context) string

func IsValidUUID

func IsValidUUID(uid string) bool

func KnownContextValueStrings

func KnownContextValueStrings(ctx context.Context) map[string]any

KnownContextValueStrings is the same as KnownContextValues, but uses string keys (useful for logging).

Types

type CtxKey

type CtxKey string

Jump to

Keyboard shortcuts

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