Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSignalHandler ¶
func NewSignalHandler() (stopCh <-chan struct{})
NewSignalHandler registers a SIGTERM and SIGINT handler. A stop channel is returned, which is closed when one of these signals are caught. If a second signal is caught, the application is terminated immediately with exit code 1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.