Documentation ¶
Index ¶
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 ActivateSignalHandlers ¶
func ActivateSignalHandlers()
func AddSignalHandler ¶
func AddSignalHandler(signalHandler SignalHandler)
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.