Documentation ¶ Index ¶ type Schedule type Scheduler func New(pool *promise.Pool) *Scheduler func (sr *Scheduler) AddPlan(startTime time.Time, endTime time.Time, action func(ctx context.Context) error) *Schedule func (sr *Scheduler) Remove(schedule Schedule) func (sr *Scheduler) Run(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Schedule ¶ added in v0.1.5 type Schedule struct { // contains filtered or unexported fields } type Scheduler ¶ type Scheduler struct { // contains filtered or unexported fields } func New ¶ func New(pool *promise.Pool) *Scheduler func (*Scheduler) AddPlan ¶ func (sr *Scheduler) AddPlan(startTime time.Time, endTime time.Time, action func(ctx context.Context) error) *Schedule func (*Scheduler) Remove ¶ added in v0.1.5 func (sr *Scheduler) Remove(schedule Schedule) func (*Scheduler) Run ¶ func (sr *Scheduler) Run(ctx context.Context) error Source Files ¶ View all Source files scheudle.go Click to show internal directories. Click to hide internal directories.