Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EmptyInfo is empty Info which is convenient to reuse EmptyInfo = &Info{} )
Functions ¶
func RecoverGoFuncWithInfo ¶
RecoverGoFuncWithInfo is the go func with recover panic and service info. It is used for panic defence and output key info for troubleshooting.
func SetPanicHandler ¶
SetPanicHandler is used to do something when panic happen, for example do metric report.
Types ¶
Click to show internal directories.
Click to hide internal directories.