Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "Graceful Shutdown"
PluginName is the name of the graceful shutdown plugin.
Variables ¶
View Source
var Parameters = &ParametersDefinition{}
Parameters contains the configuration parameters of the graceful shutdown plugin.
Functions ¶
func ShutdownWithError ¶ added in v0.2.0
func ShutdownWithError(err error)
ShutdownWithError prints out an error message and shuts down the default daemon instance.
Types ¶
type ParametersDefinition ¶ added in v0.7.4
type ParametersDefinition struct { // WaitToKillTime is the maximum amount of time (in seconds) to wait for background processes to terminate. WaitToKillTime int `default:"120" usage:"the maximum amount of time (in seconds) to wait for background processes to terminate"` }
ParametersDefinition contains the definition of configuration parameters used by the graceful shutdown plugin.
Click to show internal directories.
Click to hide internal directories.