schedule

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New()

Types

type Job

type Job interface {
	Run() // 任务执行
}

type Schedule

type Schedule interface {
	Init()                                                                   // 初始化定时任务
	AddJob(jobId string, executorHandler string, spec string, remote string) // 动态添加定时任务
	DelJob(jobId string)                                                     // 动态删除定时任务
	CallbackJob(element common2.CallElement)                                 // 定时任务结果回调
}
var Sch Schedule

Sch 全局调度器

Jump to

Keyboard shortcuts

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