Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaulSafegoLogger relec.Logger
Functions ¶
Types ¶
type Execution ¶
type Execution struct {
// contains filtered or unexported fields
}
func Run ¶
func Run(f func()) *Execution
Run runs a new goroutine and add panic handler (without restart)
func RunWithRestart ¶
func RunWithRestart(f func()) *Execution
RunWithRestart run a new goroutine and add panic handler: write logs, wait 2 seconds and restart the goroutine
type Lake ¶ added in v0.0.3
type Lake[T any] struct { // contains filtered or unexported fields }
type RecoverHandler ¶
type RecoverHandler func(value interface{})
var GlobalRecoverHandler RecoverHandler = func(value interface{}) {}
Click to show internal directories.
Click to hide internal directories.