Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶ added in v0.10.0
Callback is the callback that must be supplied for registering to receive shutdown notifications
type Manager ¶
type Manager interface {
Run(context.Context)
Shutdown(context.Context)
Register(string, Callback)
}
func NewManager ¶ added in v0.7.0
func NewManager( log *log.PrefixLogger, systemdClient *client.Systemd, reader fileio.Reader, timeout time.Duration, cancelFn context.CancelFunc) Manager
NewManager creates a new shutdown manager.
Click to show internal directories.
Click to hide internal directories.