Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSigHandle ¶
func LoadSigHandle(cleanAction func(), testMethods []func())
func PanicHandler ¶
func PanicHandler(args ...interface{})
PanicHandler 统一 panic 兜底:输出富日志(时间/上下文/触发点/堆栈)。 args 接受任意个 string 作为上下文说明;额外传入一个 *error 时(如后台 Worker 需按 panic 落任务终态), panic 会转为 error 写入该指针交还调用方。原有 PanicHandler() / PanicHandler("ctx") 调用形态不变。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.