Documentation ¶
Index ¶
- type Options
- type Scheduler
- func (scheduler *Scheduler) AddTask(taskID uint64, privData interface{}, fn func(*Task, interface{}) TaskState) *Task
- func (scheduler *Scheduler) DeleteTask(taskID uint64)
- func (scheduler *Scheduler) GetAllTasks() []*Task
- func (scheduler *Scheduler) GetState() SchedulerState
- func (scheduler *Scheduler) GetTask(taskID uint64) *Task
- func (scheduler *Scheduler) Start()
- func (scheduler *Scheduler) Stop()
- func (scheduler *Scheduler) Trigger(signal SignalType)
- type SchedulerState
- type SignalType
- type Task
- type TaskState
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 NewScheduler ¶
func (*Scheduler) DeleteTask ¶
func (*Scheduler) GetAllTasks ¶
func (*Scheduler) GetState ¶
func (scheduler *Scheduler) GetState() SchedulerState
func (*Scheduler) Trigger ¶
func (scheduler *Scheduler) Trigger(signal SignalType)
type SchedulerState ¶
type SchedulerState int32
const ( STATE_IDLE SchedulerState = iota STATE_AWAKE )
Click to show internal directories.
Click to hide internal directories.