scheduler

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package scheduler handles the scheduling of tasks

Index

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
}

Scheduler is struct on which all scheduler functionality is implemented.

func New

func New(st *store.Store) Scheduler

New returns a new scheduler

func (*Scheduler) EnableScheduler

func (s *Scheduler) EnableScheduler(ctx context.Context) <-chan error

EnableScheduler enables the scheduler this will wait until StartScheduler() is called, after that it will poll the store queue for changes and write errors to a 3-buffered channel

func (*Scheduler) StartScheduler

func (s *Scheduler) StartScheduler(startTime int64)

StartScheduler sets the start time and starts the scheduler

func (*Scheduler) WakeScheduler

func (s *Scheduler) WakeScheduler()

WakeScheduler wakes up the scheduler

Jump to

Keyboard shortcuts

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