Documentation
¶
Overview ¶
Package restarter implements a watchdog for long-running go routines. Whenever the routine stops and return an error, it is restarted periodically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Restartable ¶
type Restarter ¶
type Restarter[S Restartable] struct { // contains filtered or unexported fields }
func CreateRestarter ¶
func CreateRestarter[S Restartable](config Config, service S) (w *Restarter[S])
Click to show internal directories.
Click to hide internal directories.