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.
Click to show internal directories.
Click to hide internal directories.