Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerWithZap ¶
func LoggerWithZap(logMaxTime, sendMaxTime time.Duration) gin.HandlerFunc
LoggerWithZap returns a gin.HandlerFunc (middleware) that logs requests using uber-go/zap. Requests with errors are logged using zap.Error(). Requests without errors are logged using zap.Info().
func RecoveryWithZap ¶
func RecoveryWithZap() gin.HandlerFunc
RecoveryWithZap returns a gin.HandlerFunc (middleware) that recovers from any panics and logs requests using uber-go/zap. All errors are logged using zap.Error().
func WithZapLogger ¶
func WithZapRecovery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.