Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFiberClient ¶
func LogFiberClient( c *fiber.Ctx, req model.TargetRequest, res model.TargetResponse, )
LogFiberClient logs a custom client request and response for Fiber.
func LogGinClient ¶ added in v1.0.2
func LogGinClient( c *gin.Context, req model.TargetRequest, res model.TargetResponse, )
LogGinClient logs a custom client request and response for Gin.
func NewGin ¶ added in v1.0.2
func NewGin() gin.HandlerFunc
NewGin creates a new Gin middleware that logs requests and responses.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
pkg
|
|
|
constant/envkey
Package envkey defines environment variable keys used for configuring the application's connection to ElasticSearch.
|
Package envkey defines environment variable keys used for configuring the application's connection to ElasticSearch. |
|
constant/generalkey
Package generalkey defines common keys used within the application's context for logging and request handling.
|
Package generalkey defines common keys used within the application's context for logging and request handling. |
|
infrastructure/logger
Package logger provides a logging utility that integrates with ElasticSearch and uses the logrus package for structured logging.
|
Package logger provides a logging utility that integrates with ElasticSearch and uses the logrus package for structured logging. |
Click to show internal directories.
Click to hide internal directories.