Documentation
¶
Overview ¶
Package context provides request-scoped helpers: context access, request IDs, and type-safe locals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶
GetContext retrieves the context stored by ContextMiddleware from the Fiber request locals. It falls back to context.Background if no context was set.
func GetLocal ¶
GetLocal retrieves a value of type T from the fiber context. It returns the zero value of T if the key is absent or the type does not match.
func GetRequestID ¶
GetRequestID retrieves the request ID stored by ContextMiddleware from the Fiber request locals. It returns an empty string if no request ID was set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.