cron

package
v0.0.0-...-4f4737b Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronRunner

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

func NewCronRunner

func NewCronRunner() *CronRunner

func (*CronRunner) AddJobs

func (c *CronRunner) AddJobs(jobs ...JobSpec) error

func (*CronRunner) Run

func (c *CronRunner) Run()

func (*CronRunner) Stop

func (c *CronRunner) Stop()

type JobSpec

type JobSpec struct {
	Job  cron.Job
	Spec string
}

Jump to

Keyboard shortcuts

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