mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
24 lines
519 B
Go
24 lines
519 B
Go
package interfaces
|
|
|
|
import (
|
|
"github.com/robfig/cron/v3"
|
|
"time"
|
|
)
|
|
|
|
type ScheduleService interface {
|
|
WithConfigPath
|
|
Module
|
|
GetLocation() (loc *time.Location)
|
|
SetLocation(loc *time.Location)
|
|
GetDelay() (delay bool)
|
|
SetDelay(delay bool)
|
|
GetSkip() (skip bool)
|
|
SetSkip(skip bool)
|
|
GetUpdateInterval() (interval time.Duration)
|
|
SetUpdateInterval(interval time.Duration)
|
|
Enable(s Schedule, args ...interface{}) (err error)
|
|
Disable(s Schedule, args ...interface{}) (err error)
|
|
Update()
|
|
GetCron() (c *cron.Cron)
|
|
}
|