Documentation
¶
Index ¶
- func DefaultRecoveryFunc(gc *gin.Context, _ any)
- func ErrorHandler(f func(error) int, sep string) gin.HandlerFunc
- func LoggerHandler(logger Logger, pathFilter []string, generators ...func(*gin.Context) string) gin.HandlerFunc
- func StaticHeaderHandler(items map[string]string) gin.HandlerFunc
- func StructLoggerHandler(structLogger structLogger, structAttrProvider structAttrProvider, ...) gin.HandlerFunc
- func StructLoggerHandlerWithDefaultGenerators(structLogger *slog.Logger, structAttrProvider structAttrProvider, ...) gin.HandlerFunc
- func StructRecoveryHandler(structLogger recoveryStructLogger, handle gin.RecoveryFunc) gin.HandlerFunc
- type Logger
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRecoveryFunc ¶ added in v0.6.1
func ErrorHandler ¶
func ErrorHandler(f func(error) int, sep string) gin.HandlerFunc
func LoggerHandler ¶
func StaticHeaderHandler ¶ added in v0.3.0
func StaticHeaderHandler(items map[string]string) gin.HandlerFunc
func StructLoggerHandler ¶ added in v0.9.0
func StructLoggerHandlerWithDefaultGenerators ¶ added in v0.10.0
func StructRecoveryHandler ¶ added in v0.9.0
func StructRecoveryHandler(structLogger recoveryStructLogger, handle gin.RecoveryFunc) gin.HandlerFunc
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.