Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RecoveryHandler = func(f wrapper.HandlerFunc) wrapper.HandlerFunc { return func(ctx context.Context, args ...interface{}) (interface{}, error) { defer func() { if r := recover(); r != nil { err, ok := r.(error) if !ok { logger.Zap.Sugar().Errorf("%v", r) return } logger.Zap.Error(err.Error(), zap.Error(err)) } }() return f(ctx, args) } }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.