Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GracefulShutdown ¶
func GracefulShutdown(cancel context.CancelFunc)
GracefulShutdown catches signals of Interrupt, SIGINT, SIGTERM, SIGQUIT and cancel a context. If any signals caught, it will call the CancelFunc to cancel a context. If a second signal caught, exit directly with code 1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.