Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recover ¶
func Recover(msg string, cfg ...*RecoverConfig)
Types ¶
type RecoverConfig ¶ added in v1.1.0
RecoverConfig is the option for Recover.
func NewRecoverConfig ¶ added in v1.1.7
func NewRecoverConfig(options ...RecoverOption) *RecoverConfig
NewRecoverConfig returns a new RecoverOption.
type RecoverOption ¶ added in v1.1.0
type RecoverOption func(*RecoverConfig)
func WithCallback ¶ added in v1.1.0
func WithCallback(callback func(error)) RecoverOption
WithCallback sets the callback.
Click to show internal directories.
Click to hide internal directories.