1 Star 0 Fork 0

igo/pkg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
entry.go 503 Bytes
一键复制 编辑 原始数据 按行查看 历史
layte.xiao 提交于 2023-11-28 22:04 . xcron
package xcron
import (
"github.com/robfig/cron/v3"
"time"
)
type Entry struct {
entry cron.Entry
ID cron.EntryID
// Next time the job will run, or the zero time if Cron has not been
// started or this entry's schedule is unsatisfiable
Next time.Time
// Prev is the last time this job was run, or the zero time if never.
Prev time.Time
Name string
Desc string
Spec string
Key string
cmd Job
}
func (e Entry) Job() cron.Job {
return e.cmd
}
func (e Entry) Run() {
e.Job().Run()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/igolang/pkg.git
git@gitee.com:igolang/pkg.git
igolang
pkg
pkg
v1.25.0

搜索帮助