【文件属性】:
文件名称:go-quartz:简单,零依赖的Go调度库
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-06 10:48:13
go golang cron job crontab
去石英
简单,零依赖的Go调度库。
关于
受到 Java调度程序的启发。
图书馆积木
作业界面。 可以预定实现它的任何类型。
type Job interface {
Execute ()
Description () string
Key () int
}
已实施的工作
ShellJob
卷毛作业
调度程序界面
type Scheduler interface {
// start the scheduler
Start ()
// schedule the job with the specified trigger
ScheduleJob ( job Job , trigger Trigger ) error
// get all scheduled jobs keys
GetJobKeys () [] int
// get the scheduled j
【文件预览】:
go-quartz-master
----go.mod(34B)
----examples()
--------main.go(2KB)
--------print_job.go(549B)
----.travis.yml(233B)
----LICENSE(1KB)
----README.md(2KB)
----quartz()
--------trigger_test.go(945B)
--------scheduler.go(5KB)
--------cron.go(13KB)
--------util_test.go(556B)
--------trigger.go(2KB)
--------job.go(3KB)
--------queue.go(1KB)
--------util.go(3KB)
--------doc.go(166B)
--------scheduler_test.go(2KB)
--------cron_test.go(5KB)
----.gitignore(34B)