task

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

func GlobalFactory

func GlobalFactory() *Factory

func New

func New(repo Repo) *Factory

func (*Factory) AddCron

func (t *Factory) AddCron(id uint32, spec string) error

func (*Factory) Close

func (t *Factory) Close()

func (*Factory) DrySpec

func (t *Factory) DrySpec(s string) bool

func (*Factory) RemoveCron

func (t *Factory) RemoveCron(id uint32) error

func (*Factory) Scheduler

func (t *Factory) Scheduler(id uint32) error

func (*Factory) UpdateCron

func (t *Factory) UpdateCron(id uint32, spec string) error

type Repo

type Repo interface {
	biz.WorkerRepo
	biz.TaskRepo
	biz.LogRepo
}

Jump to

Keyboard shortcuts

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