Documentation ¶
Overview ¶
Package ginzero provides log handing useing zerolog package. Code structure based on ginrus package.
Index ¶
- func CustomRecoveryWithZero(logger ZeroLogger, stack bool, recovery gin.RecoveryFunc) gin.HandlerFunc
- func Ginzero(logger ZeroLogger, optFuncs ...OptionFunc) gin.HandlerFunc
- func GinzeroWithConfig(logger ZeroLogger, conf *Config) gin.HandlerFunc
- func RecoveryWithZero(logger ZeroLogger, stack bool) gin.HandlerFunc
- type Config
- type OptionFunc
- type ZeroLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomRecoveryWithZero ¶
func CustomRecoveryWithZero(logger ZeroLogger, stack bool, recovery gin.RecoveryFunc) gin.HandlerFunc
func Ginzero ¶
func Ginzero(logger ZeroLogger, optFuncs ...OptionFunc) gin.HandlerFunc
func GinzeroWithConfig ¶
func GinzeroWithConfig(logger ZeroLogger, conf *Config) gin.HandlerFunc
func RecoveryWithZero ¶
func RecoveryWithZero(logger ZeroLogger, stack bool) gin.HandlerFunc
Types ¶
type OptionFunc ¶
type OptionFunc func(*Config)
func WithSkipPaths ¶
func WithSkipPaths(paths []string) OptionFunc
Click to show internal directories.
Click to hide internal directories.