Documentation
¶
Overview ¶
Package ginzero provides log handing useing zerolog package. Code structure based on ginrus package.
Index ¶
- Variables
- 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 ¶
View Source
var Xid = "Xid"
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 Genxid ¶ added in v0.0.4
func Genxid(genxid func() string) OptionFunc
func SkipPaths ¶ added in v0.0.4
func SkipPaths(paths []string) OptionFunc
Click to show internal directories.
Click to hide internal directories.