Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupShutdownSignalHandler ¶ added in v0.14.0
SetupShutdownSignalHandler registeres a handler for SIGTERM and SIGINT. A stop channel is returned which is closed on the first receipt of one of these signals. On a second receipt the provided killFunc is called in a new gorouting. Upon a third receipt the process gets terminated via os.Exit(1).
killFunc is supposed to shutdown the process without further significant delay.
func SetupThreadDumpSignalHandler ¶ added in v0.14.0
SetupThreadDumpSignalHandler registers a handler for SIGQUIT. Each time the signal is received, a thread dump is logged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.