diff options
Diffstat (limited to '')
-rw-r--r-- | modules/structs/cron.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/structs/cron.go b/modules/structs/cron.go new file mode 100644 index 0000000..39c6a06 --- /dev/null +++ b/modules/structs/cron.go @@ -0,0 +1,15 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +package structs + +import "time" + +// Cron represents a Cron task +type Cron struct { + Name string `json:"name"` + Schedule string `json:"schedule"` + Next time.Time `json:"next"` + Prev time.Time `json:"prev"` + ExecTimes int64 `json:"exec_times"` +} |