Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target interface { Analyze() error ConcurrencyLimit() int Handle(context.Context, TaskConfig) error NewTaskConfig(class string) (TaskConfig, error) Start() error Stop() error }
A Target executes tasks
type TargetFactory ¶
type TargetFactory interface {
NewTarget() Target
}
A TargetFactory instantiates new targets
type Task ¶
type Task struct { Target string After []string Message string Config TaskConfig }
Task contains data common to all tasks
type TaskConfig ¶
type TaskConfig interface {
Check() error
}
A TaskConfig contains task-specific data
Click to show internal directories.
Click to hide internal directories.