Documentation
¶
Index ¶
Constants ¶
View Source
const ( Canceled sleepResult = true DurationReached sleepResult = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(logger *zerolog.Logger, policyName, host string, cfg *Config, handler CommandFunc) (*Controller, error)
func (*Controller) Start ¶
func (c *Controller) Start(ctx context.Context) func()
run context dependant controller.
Click to show internal directories.
Click to hide internal directories.