Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdRunner ¶
type CmdRunner struct { }
CmdRunner is a runner manager and only one instance per process is needed.
Runners will be started as soon the CmdRunner.start() is called, and will be automatically stopped if the stop signal is received. Starting and stopping of runners must be handled by user, using the provided handlers.
Example:
r := NewCmdRunner()
func NewCmdRunner ¶
func NewCmdRunner() *CmdRunner
type RunnerHandler ¶
type RunnerHandler func() error
Click to show internal directories.
Click to hide internal directories.