Documentation ¶
Overview ¶
Package generalkey defines common keys used within the application's context for logging and request handling. These keys are used to store and retrieve specific values from the Fiber context, facilitating consistent and structured logging throughout the application.
Index ¶
Constants ¶
const ClientLog = "client-log"
ClientLog is the context key used to store log entries related to client requests. This key helps in accumulating log data for outgoing HTTP requests that the server makes.
const ErrorLog = "error-log"
ErrorLog is the context key used to store the error log entries related to server errors. This key helps in accumulating log data for incoming HTTP requests that the server receives.
const Logger = "logger"
Logger is the context key used to store the logger instance within the context of each request. It allows middleware and handlers to access a logger pre-configured with request-specific fields.
const RequestID = "id"
RequestID is the context key used to store the unique request identifier for each incoming request. This key helps track individual requests across various logs and enhances traceability.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.