libcron

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 9 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, error)

func (*Cron) BySeconds

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

func (*Cron) Duration added in v0.2.4

func (c *Cron) Duration(name string, duration time.Duration, 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