cron

package
v0.0.0-...-75939a1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronManager

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

func New

func New() *CronManager

func (*CronManager) Register

func (c *CronManager) Register(jobs ...*Job) *CronManager

func (*CronManager) Start

func (c *CronManager) Start(context.Context) error

func (*CronManager) Stop

func (c *CronManager) Stop(ctx context.Context) error

type Job

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

func NewJob

func NewJob(name, spec string, handle func()) *Job

Jump to

Keyboard shortcuts

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