constants

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CtxKey

type CtxKey string

CtxKey is a custom type for defining context keys, ensuring strong typing and preventing collisions with other context values.

const CtxFieldLogger CtxKey = "logger"

CtxFieldLogger is the context key for storing the logger instance, which facilitates structured and traceable logging within a request context.

const CtxFieldTraceID CtxKey = "trace_id"

CtxFieldTraceID is the context key for storing the trace ID, which uniquely identifies a request for tracing across services.

const CtxFieldUserID CtxKey = "user_id"

CtxFieldUserID is the context key for storing the user ID, allowing for user identification and access control throughout the request lifecycle.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳