task

package
v0.8.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron added in v0.6.0

type Cron struct {
	*cron.Cron
	// contains filtered or unexported fields
}

func (*Cron) AddFunc added in v0.6.0

func (c *Cron) AddFunc(spec string, cmd func()) error

func (*Cron) AddFuncSign added in v0.6.0

func (c *Cron) AddFuncSign(spec string, cmd func(), sign any) error

func (*Cron) AddJob added in v0.6.0

func (c *Cron) AddJob(spec string, cmd Job) error

func (*Cron) Schedule added in v0.6.0

func (c *Cron) Schedule(schedule Schedule, cmd Job)

type Job added in v0.6.0

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

func (Job) Run added in v0.6.0

func (j Job) Run()

type Schedule added in v0.6.0

type Schedule = cron.Schedule

type Service

type Service struct {
	service.BaseStruct
}

func (*Service) Start

func (*Service) Start(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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