Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WaitFinished, WaitCancel = context.WithCancel(context.Background())
var WaitFinished = make(chan bool) TODO: should be set here the default context instead of the background?!
Functions ¶
func CallGracefulShutdown ¶
func CallGracefulShutdown()
func MonitorSigMessages ¶
func MonitorSigMessages()
MonitorSigMessages -> receives the signal of termination, and reacts based on this It should call the Cancel Context, and the entire app should terminate gracefully
func OnShutdown ¶
func OnShutdown(onShutdown ...OnShutdownCb)
Types ¶
type OnShutdownCb ¶
type OnShutdownCb func()
Click to show internal directories.
Click to hide internal directories.