Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentParams ¶
type Runner ¶
type Runner interface {
Name() string
Execute(stop <-chan struct{}, running chan<- struct{}) ServiceExitCode
}
type ServiceExitCode ¶ added in v0.9.0
type ServiceExitCode int
const ( GenericError ServiceExitCode = 1 ConfigError ServiceExitCode = 2 LogFileError ServiceExitCode = 3 )
type ServiceManager ¶ added in v1.0.0
type ServiceManager interface {
Create(params AgentParams) (Service, error)
Open(name string) (Service, error)
}
func NewServiceManager ¶ added in v1.0.0
func NewServiceManager() ServiceManager
Click to show internal directories.
Click to hide internal directories.