libcron

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewCron)

Functions

This section is empty.

Types

type Cron

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

func NewCron

func NewCron() *Cron

func (*Cron) ByCronExpr

func (c *Cron) ByCronExpr(expr string, jobFunc interface{}, params ...interface{}) error

func (*Cron) BySeconds

func (c *Cron) BySeconds(seconds int, jobFunc interface{}, params ...interface{}) error

func (*Cron) Start

func (c *Cron) Start(ctx context.Context) error

func (*Cron) Stop

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

Jump to

Keyboard shortcuts

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