Documentation ¶
Overview ¶
Package grace implements set of helper functions around syscal.Signals for gracefully shutdown and reload the service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReloadChannel ¶ added in v0.5.0
ReloadContext returns child context which will be canceled on syscall.SIGHUP signal
func ShutdownContext ¶
ShutdownContext returns child context from passed context which will be canceled on incoming signals: SIGINT, SIGTERM, SIGHUP. Ends immediately by os.Exit(1) after second signal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.