Documentation
¶
Index ¶
- Constants
- func ActivateSignalHandlerWithContext(context context.Context)
- func ActivateSignalHandlers()
- func AddSignalHandler(signalHandler SignalHandler)
- func ClearSignalHandlers()
- func GetSignalName(s syscall.Signal) string
- func Kill(pid int) (e error)
- func Notify(c chan<- os.Signal, sig ...os.Signal)
- func RemoveSignalHandlersByName(names ...string)
- type ByOrder
- type SignalHandler
Constants ¶
View Source
const ( OrderReadinessFalse = 0 //Set Readiness to false OrderStopActions = 10 //Stop all actions OrderStopCustom = 20 //Custom handler OrderStopProbesHttp = 80 //Shutdown the probes HTTP server OrderStopExtensionHttp = 90 //Shutdown the extension HTTP server OrderTermination = 100 //Fallback handler for SIGINT and SIGTERM, the extension usually stops after shutting down the server. This is a last resort if there is an issue with the server shutdown. )
Variables ¶
This section is empty.
Functions ¶
func ActivateSignalHandlerWithContext ¶ added in v1.10.0
func ActivateSignalHandlers ¶
func ActivateSignalHandlers()
func AddSignalHandler ¶
func AddSignalHandler(signalHandler SignalHandler)
func ClearSignalHandlers ¶ added in v1.10.0
func ClearSignalHandlers()
func GetSignalName ¶ added in v1.10.0
func RemoveSignalHandlersByName ¶ added in v1.8.21
func RemoveSignalHandlersByName(names ...string)
RemoveSignalHandlersByName removes signal handlers by name. This is mainly used for testing.
Types ¶
type ByOrder ¶
type ByOrder []SignalHandler
Click to show internal directories.
Click to hide internal directories.