contextutils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValueFromContext

func GetValueFromContext(ctx context.Context, key ContextKey) string

func SetValue

func SetValue(ctx context.Context, key ContextKey, value string) context.Context

Types

type ContextKey

type ContextKey string
const (
	RequestIDKey             ContextKey = "k_request_id"
	StartRequestTimestampKey ContextKey = "k_start_request_timestamp"
	IPAddressKey             ContextKey = "k_ip_address"
)

Jump to

Keyboard shortcuts

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