schedule

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL