cron

package
v0.0.0-...-854b266 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

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
}

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) Entries

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

func (*CronService) Entry

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

func (*CronService) Init

func (s *CronService) Init(k *kernel.Kernel) error

func (*CronService) Name

func (s *CronService) Name() string

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