Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new scheduler instance. TODO: convert all the go-routines into effectiet using Select & For channel
func (*Scheduler) DiscardTaskNow ¶
DiscardTaskNow removes a task from the scheduler and won't stops the task if it is running.
if the task is not found in scheduler, it logs a message.
func (*Scheduler) ScheduleTask ¶
ScheduleTask schedules the task based on the start time.
func (*Scheduler) ScheduleTaskNow ¶
It returns an error if the task is already scheduled.
Click to show internal directories.
Click to hide internal directories.