Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon interface {
BuildUp(startup bool, logger *log.Logger)
TearDown(stopping bool, logger *log.Logger)
}
Daemon provides an interface to start and stop a daemon
type DaemonRunner ¶
type DaemonRunner interface {
Begin()
SignalReload()
SignalShutdown()
Starting() bool
Reloading() bool
Stopping() bool
Active() bool
}
DaemonRunner provides an interface to run a daemon and signal actions
func NewDaemonRunner ¶
func NewDaemonRunner(daemonIn Daemon, logger *log.Logger) DaemonRunner
NewDaemonRunner creates a new DaemonRunner implementation with the specified Daemon and logger.
Click to show internal directories.
Click to hide internal directories.