Documentation ¶
Index ¶
- func AfterFuncWrapperFunc(log *logger.Logger) func(name string, d time.Duration, f func()) *time.Timer
- func Exit(log *logger.Logger, reason string)
- func GoroutineWrapperFunc(log *logger.Logger) func(name string, spawnedFunction func())
- func HandlePanic(log *logger.Logger, goroutineName string, goroutineStackTrace []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterFuncWrapperFunc ¶
func AfterFuncWrapperFunc(log *logger.Logger) func(name string, d time.Duration, f func()) *time.Timer
AfterFuncWrapperFunc returns a time.AfterFunc wrapper function that handles panics.
func GoroutineWrapperFunc ¶
GoroutineWrapperFunc returns a goroutine wrapper function that handles panics and writes them to the log.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.