Documentation
¶
Index ¶
- Variables
- type Entry
- type Scheduler
- func (s *Scheduler) AddTask(name, schedule string, task Task) (err error)
- func (s *Scheduler) AddTaskFunc(name, schedule string, task func()) (err error)
- func (s *Scheduler) Entries() (entries []Entry)
- func (s *Scheduler) RemoveTask(name string) (err error)
- func (s *Scheduler) Start()
- func (s *Scheduler) Stop() (done context.Context)
- type Task
- type TaskFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorTaskAlreadyExists = fmt.Errorf("task already exists") ErrorNoSuchTask = fmt.Errorf("no such task") )
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler for transactions
func (*Scheduler) AddTaskFunc ¶
AddTaskFunc is like AddTask but accepts a function task
func (*Scheduler) RemoveTask ¶
RemoveTask from the scheduler
Click to show internal directories.
Click to hide internal directories.