scheduler

package
v5.6.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canceller

type Canceller func() error

type Schedule

type Schedule interface {
	Next(time.Time) time.Time
}

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func New

func New(limit uint) *Scheduler

func NewWithLocation

func NewWithLocation(limit uint, location *time.Location) *Scheduler

func (*Scheduler) Add

func (s *Scheduler) Add(sched Schedule, name string, entrypoint TaskFunc) func() error

func (*Scheduler) Start

func (s *Scheduler) Start() error

func (*Scheduler) Stop

func (s *Scheduler) Stop() error

type TaskFunc

type TaskFunc func() []TaskFunc

Single task in an active job. Optionally returns continuation of tasks to be executed within current job.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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