Documentation ¶
Index ¶
- func DefaultIsSkipFunc(*fasthttp.RequestCtx) bool
- func DefaultPostCtxDealFunc(ctx *fasthttp.RequestCtx, existField *[]zapcore.Field, lattency time.Duration)
- func DefaultPreCtxDealFunc(ctx *fasthttp.RequestCtx) []zapcore.Field
- type FHZap
- type IsSkipFunc
- type Option
- type PostCtxDealFunc
- type PreCtxDealFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIsSkipFunc ¶
func DefaultIsSkipFunc(*fasthttp.RequestCtx) bool
func DefaultPostCtxDealFunc ¶
func DefaultPreCtxDealFunc ¶
func DefaultPreCtxDealFunc(ctx *fasthttp.RequestCtx) []zapcore.Field
Types ¶
type FHZap ¶
type FHZap struct {
// contains filtered or unexported fields
}
FHZapLogger fasthttp zap logger
func (*FHZap) Combined ¶
func (fhz *FHZap) Combined(next fasthttp.RequestHandler) fasthttp.RequestHandler
type IsSkipFunc ¶
type IsSkipFunc func(*fasthttp.RequestCtx) bool
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithIsSkipFunc ¶
func WithIsSkipFunc(fn IsSkipFunc) Option
func WithLogMsg ¶
func WithPostCtxDealFunc ¶
func WithPostCtxDealFunc(fn PostCtxDealFunc) Option
func WithPreCtxDealFunc ¶
func WithPreCtxDealFunc(fn PreCtxDealFunc) Option
func WithSkipPaths ¶
type PostCtxDealFunc ¶
type PreCtxDealFunc ¶
type PreCtxDealFunc func(*fasthttp.RequestCtx) []zapcore.Field
Click to show internal directories.
Click to hide internal directories.