优化忽略规则配置和 Agent 获取 IP

This commit is contained in:
naiba
2021-06-21 21:30:42 +08:00
parent c4f36d17d5
commit 4b0c0ad288
20 changed files with 370 additions and 291 deletions

View File

@@ -8,6 +8,11 @@ import (
"gorm.io/gorm"
)
const (
CronCoverIgnoreAll = iota
CronCoverAll
)
type Cron struct {
Common
Name string
@@ -17,6 +22,7 @@ type Cron struct {
PushSuccessful bool // 推送成功的通知
LastExecutedAt time.Time // 最后一次执行时间
LastResult bool // 最后一次执行结果
Cover uint8
CronID cron.EntryID `gorn:"-"`
ServersRaw string