Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
OS *OSComponent
}
Component enables creation of signal handlers to shut down a system.
type Config ¶
type Config struct { Installed []string `description:"Which signal handlers are installed. Choices are OS."` OS *OSConfig }
Config contains all configuration for enabling various shut down signals.
func (*Config) Description ¶
Description of the configuration for help output.
type OSComponent ¶
type OSComponent struct{}
OSComponent enables creation of an OS signal handler.
func (*OSComponent) Settings ¶
func (*OSComponent) Settings() *OSConfig
Settings generates a default configuration.
type OSConfig ¶
type OSConfig struct {
Signals []int `description:"Which signals to listen for."`
}
OSConfig contains configuration for creating an OSSignal listener.
func (*OSConfig) Description ¶
Description of the configuration for help output.
Click to show internal directories.
Click to hide internal directories.