scheduler

package
v2.0.0-...-cc5b34b Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Id  cron.EntryID
	Job types.Job
}

type OnExecute

type OnExecute func(job types.Job)

type Scheduler

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

func New

func New(onExecute OnExecute) Scheduler

func (*Scheduler) AddJob

func (s *Scheduler) AddJob(job types.Job)

func (*Scheduler) JobExists

func (s *Scheduler) JobExists(job types.Job) bool

func (*Scheduler) RemoveJob

func (s *Scheduler) RemoveJob(job types.Job)

func (*Scheduler) SyncJobs

func (s *Scheduler) SyncJobs(jobs []types.Job)

Jump to

Keyboard shortcuts

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