common

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitApp

func ExitApp()

func GetGlobalHttpClient

func GetGlobalHttpClient(requestTimeout time.Duration) *http.Client

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL