Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve()
Serve the signal notifier
Should be run as: go signal.Serve() Currently support signals: SIGHUP, SIGINT, SIGQUIT, SIGABRT, SIGALRM, SIGTERM, SIGUSR1, SIGUSR2. The Handler function should returns a bool value, which means if the function accept the termination. If all got by the handler function returns "true" and the signal is one of SIGINT, SIGQUIT, SIGTERM, the program would exit with code 0.
Types ¶
Click to show internal directories.
Click to hide internal directories.