Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForProcessInterruption ¶
func WaitForProcessInterruption(cb ...func())
WaitForProcessInterruption wait for SIGINT or SIGTERM and run a callback function.
First signal start a callback function, which should call os.Exit(0). Next signal will call os.Exit(128 + signal-value). If no cb is given,
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.