Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ScheduleLockerEnabled = true
Functions ¶
func CreateSchedule ¶
Types ¶
type CronZaplog ¶
type CronZaplog struct {
// contains filtered or unexported fields
}
func (*CronZaplog) Error ¶
func (c *CronZaplog) Error(err error, msg string, keysAndValues ...interface{})
func (*CronZaplog) Info ¶
func (c *CronZaplog) Info(msg string, keysAndValues ...interface{})
type JobSchedule ¶ added in v0.7.7
type JobSchedule struct { Name string `gorm:"size:64;primarykey"` CreatedAt time.Time UpdatedAt time.Time Schedule string `gorm:"size:32"` LastRuntime *time.Time LastDuration time.Duration }
It's for job locker
type ScheduleLoker ¶ added in v0.7.7
func (*ScheduleLoker) Create ¶ added in v0.7.7
func (sl *ScheduleLoker) Create(name, schedule string) error
func (*ScheduleLoker) Wrapper ¶ added in v0.7.7
func (sl *ScheduleLoker) Wrapper() cron.JobWrapper
Click to show internal directories.
Click to hide internal directories.