cron

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronScheduler

type CronScheduler struct {
	*cron.Cron
	// contains filtered or unexported fields
}

CronScheduler is a cron-like job scheduler.

func NewCronScheduler

func NewCronScheduler(ctx context.Context) *CronScheduler

NewCronScheduler returns a new Cron.

func (*CronScheduler) Shutdown

func (s *CronScheduler) Shutdown()

Shutdonw gracefully shuts down the CronServer.

func (*CronScheduler) Start

func (s *CronScheduler) Start()

Start starts the CronServer.

type Entry

type Entry struct {
	ID   cron.EntryID
	Desc string
	Spec string
}

Entry is a cron job.

Jump to

Keyboard shortcuts

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