aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs/cron.go
blob: 39c6a06a4225c2e536d43631106502e690c18ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"`
}