job

package
v0.0.0-...-bf4de7e Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PollTickTaskCron   = "0 */15 * * * *" // 每 15 分钟执行一次
	PollDailyTaskCron  = "0 30 8 */1 * *" // 每天八点半执行
	PollHourlyTaskCron = "0 0 * * * *"    // 每小时执行一次
)

Variables

This section is empty.

Functions

func DoHourlyTask

func DoHourlyTask(ctx context.Context)

func DoPollDailyTask

func DoPollDailyTask(ctx context.Context)

func DoPollTickTask

func DoPollTickTask(ctx context.Context)

func New

func New() service.IJob

func RegisterPollTask

func RegisterPollTask(ctx context.Context) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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