Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext retrieves the request ID from the given context.
Parameters: - c: The context from which the request ID will be retrieved.
Returns: - The request ID as a string if present in the context; otherwise, returns an empty string.
func SetContext ¶
SetContext adds the request ID from the fiber context (c) to the provided context (ctx). It returns a new context with the request ID included.
Parameters: - ctx: The context to which the request ID will be added. - c: The fiber context containing the request ID.
Returns: - A new context with the request ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.