Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateDebug ¶
func ActivateDebug(logger Logger) func()
func EnableLogsDebug ¶
func GlobalLogs ¶
func SDKGoRecover ¶
func SDKGoRecover(engine string)
SDKGoRecover recovers from a panic inside a goroutine that processes SDK results. It logs the panic; the deferred close(out) in the caller signals the consumer that the stream ended.
func SafeGo ¶
func SafeGo(name string, fn func())
SafeGo launches a goroutine with automatic panic recovery. On panic the stack is logged and the goroutine exits cleanly.
func SafeRun ¶
func SafeRun(name string, fn func())
SafeRun executes fn synchronously with panic recovery. On panic the stack is logged and SafeRun returns normally, so the caller (e.g. a worker loop) can continue processing.
func SuppressGlobalNonErrors ¶
func SuppressGlobalNonErrors() func()
Types ¶
Click to show internal directories.
Click to hide internal directories.