Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddHandler ¶
func AddHandler(handler func())
AddHandler adds a handler to call when a SIGINT (Ctrl+C) is received.
func GoroutineDump ¶ added in v0.4.14
func GoroutineDump() string
GoroutineDump returns a string with the current goroutine dump in order to show what's going on in case of timeout.
func Listener ¶
func Listener()
Listener listens for interrupt signals, registers interrupt callbacks, and responds to custom shutdown signals as required
func RequestRestart ¶
func RequestRestart()
RequestRestart sets the reset flag and requests a restart
Types ¶
type HandlerWithSource ¶ added in v0.4.14
type HandlerWithSource struct { Source string Fn func() }
Click to show internal directories.
Click to hide internal directories.