Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleInterruptSignal ¶
func HandleInterruptSignal(callback func())
Handle SIGINT (Ctrl+C) and call callback function before exit
func HandleSignal ¶
Handle signal and call callback function before exit
func HandleTerminateSignal ¶
func HandleTerminateSignal(callback func())
Handle SIGTERM and call callback function before exit
func PrintMessageOnInterruptSignal ¶
func PrintMessageOnInterruptSignal(message string)
Print message on SIGINT (Ctrl+C) before exit
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.