generalkey

package
v1.0.7 Latest Latest
Warning

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

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

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

View Source
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.

View Source
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.

View Source
const RequestID = "requestId"

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL