Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "GracefulShutdown"
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.
View Source
var ( // Plugin is the plugin instance of the graceful shutdown plugin. Plugin *node.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 to wait for background processes to terminate. WaitToKillTime time.Duration `default:"120s" usage:"the maximum amount of time 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.