cron

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package cron This provides the Kernel a managed Cron service.

This is simply a wrapper around gopkg.in/robfig/cron.v2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronService

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

CronService gopkg.in/robfig/crn.v2 as a Kernel Service

func (*CronService) AddFunc

func (s *CronService) AddFunc(spec string, cmd func()) (crn.EntryID, error)

func (*CronService) AddJob

func (s *CronService) AddJob(spec string, cmd crn.Job) (crn.EntryID, error)

func (*CronService) AddPriorityTask added in v1.2.0

func (s *CronService) AddPriorityTask(priority int, spec string, task task.Task) (crn.EntryID, error)

func (*CronService) AddTask added in v1.2.0

func (s *CronService) AddTask(spec string, task task.Task) (crn.EntryID, error)

func (*CronService) Entries

func (s *CronService) Entries() []crn.Entry

func (*CronService) Entry

func (s *CronService) Entry(id crn.EntryID) crn.Entry

func (*CronService) PostInit added in v1.2.0

func (s *CronService) PostInit() error

func (*CronService) Remove

func (s *CronService) Remove(id crn.EntryID)

func (*CronService) Schedule

func (s *CronService) Schedule(schedule crn.Schedule, cmd crn.Job) crn.EntryID

func (*CronService) Start

func (s *CronService) Start() error

func (*CronService) Stop

func (s *CronService) Stop()

Jump to

Keyboard shortcuts

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