task

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New)

ProviderSet is task providers.

Functions

This section is empty.

Types

type Task

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

func New added in v1.0.3

func New(c *conf.Bootstrap) (tk *Task, err error)

New is initialize task worker from config

func (Task) Cron

func (tk Task) Cron(options ...func(*worker.RunOptions)) error

func (Task) Once

func (tk Task) Once(options ...func(*worker.RunOptions)) error

Jump to

Keyboard shortcuts

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