Documentation ¶
Overview ¶
Package signals contains utilities for managing process signals, particularly around stopping processes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSigKillContext ¶ added in v1.13.0
func NewSigKillContext() (context.Context, context.CancelFunc)
NewSigKillContext returns a Context that cancels when os.Interrupt or os.Kill is received along with a stop function that can be used to unregister the signal behavior.
func NewSigTermHandler ¶ added in v1.31.0
func NewSigTermHandler(handle func())
NewSigTermHandler creates a channel to listen to SIGTERM and runs the handle function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.