Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultStatusChangeCallback ¶
func DefaultStatusChangeCallback(task ScheduledTask, status Status)
Types ¶
type ScheduledTask ¶
type Scheduler ¶
type Scheduler interface { ScheduleCompilation(f compilationdatastore.FilterParams) (ScheduledTask, error) ScheduleAnalysis(ref analysis.Reference) (ScheduledTask, error) }
multiple schedulings of the same thing should not cause duplicates
type Status ¶
type Status string
func WaitForScheduledTask ¶
func WaitForScheduledTask(t ScheduledTask, callback StatusChangeCallback) (Status, error)
type StatusChangeCallback ¶
type StatusChangeCallback func(ScheduledTask, Status) // TODO pass only ScheduledTask.Subject()?
Click to show internal directories.
Click to hide internal directories.