shutdown

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0, BSD-2-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoreComponent *app.CoreComponent
)
View Source
var ParamsShutdown = &ParametersShutdown{}

Functions

This section is empty.

Types

type ParametersShutdown

type ParametersShutdown struct {
	// the maximum time to wait for background processes to finish during shutdown before terminating the app.
	StopGracePeriod time.Duration `default:"300s" usage:"the maximum time to wait for background processes to finish during shutdown before terminating the app"`

	Log struct {
		// whether to store self-shutdown events to a log file.
		Enabled bool `default:"true" usage:"whether to store self-shutdown events to a log file"`
		// the file path to the self-shutdown log.
		FilePath string `default:"shutdown.log" usage:"the file path to the self-shutdown log"`
	}
}

ParametersShutdown contains the definition of the parameters used by shutdown.

Jump to

Keyboard shortcuts

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