Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Component *app.Component
)
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.
Click to show internal directories.
Click to hide internal directories.