Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupSignalHandler ¶
func SetupSignalHandler(cancelFunc context.CancelFunc)
SetupSignalHandler sets up a signal handler that calls the given CancelFunc on SIGTERM/SIGINT. If a second signal is caught, the program is terminated immediately with exit code 1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.