cronjob

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyPrefix = "cronjob:%s"

Functions

This section is empty.

Types

type CronJob

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

func New

func New(redisClient *redis.Client, name string, timeout time.Duration) *CronJob

func (*CronJob) AddFunc

func (c *CronJob) AddFunc(ctx context.Context, spec string, cmd func()) error

func (*CronJob) Renewal

func (c *CronJob) Renewal(ctx context.Context)

func (*CronJob) Start

func (c *CronJob) Start()

func (*CronJob) Stop

func (c *CronJob) Stop()

Jump to

Keyboard shortcuts

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