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 ¶ added in v0.1.0
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 ¶ added in v0.1.0
SetPanicHandler is used to do something when panic happen, for example do metric report.
Types ¶
type GoTask ¶
GoTask is used to spawn a new task.
var GoFunc GoTask
GoFunc is the default func used globally.
type Info ¶ added in v0.1.0
Info is used to pass key info to go func, which is convenient for troubleshooting
func NewBasicInfo ¶ added in v0.1.0
NewBasicInfo is to new Info with remoteService and remoteAddr.
Click to show internal directories.
Click to hide internal directories.