gracefulshutdown

package
v0.8.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: Apache-2.0, BSD-2-Clause Imports: 10 Imported by: 0

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

func ShutdownWithError(err error)

ShutdownWithError prints out an error message and shuts down the default daemon instance.

Types

type ParametersDefinition

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL