Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRunCmdOpts = RunCmdOpts{ SetupSignalHandler: core.SetupSignalHandler, }
Functions ¶
func UsageOptions ¶
Types ¶
type RunCmdOpts ¶
type RunCmdOpts struct {
// The first returned context is closed upon receiving first signal (SIGSTOP, SIGTERM).
// The second returned context is closed upon receiving second signal.
// We can start graceful shutdown when first context is closed and forcefully stop when the second one is closed.
SetupSignalHandler func() (context.Context, context.Context)
}
Click to show internal directories.
Click to hide internal directories.