Documentation ¶
Index ¶
- func GetScheduleService(path string, opts ...Option) (svc interfaces.ScheduleService, err error)
- func NewLogger() cron.Logger
- func NewScheduleService(opts ...Option) (svc2 interfaces.ScheduleService, err error)
- func ProvideGetScheduleService(path string, opts ...Option) func() (svr interfaces.ScheduleService, err error)
- func ProvideScheduleService(path string, opts ...Option) func() (svc interfaces.ScheduleService, err error)
- type Logger
- type Option
- type Service
- func (svc *Service) Disable(s interfaces.Schedule, args ...interface{}) (err error)
- func (svc *Service) Enable(s interfaces.Schedule, args ...interface{}) (err error)
- func (svc *Service) GetCron() (c *cron.Cron)
- func (svc *Service) GetDelay() (delay bool)
- func (svc *Service) GetLocation() (loc *time.Location)
- func (svc *Service) GetSkip() (skip bool)
- func (svc *Service) GetUpdateInterval() (interval time.Duration)
- func (svc *Service) Init() (err error)
- func (svc *Service) SetDelay(delay bool)
- func (svc *Service) SetLocation(loc *time.Location)
- func (svc *Service) SetSkip(skip bool)
- func (svc *Service) SetUpdateInterval(interval time.Duration)
- func (svc *Service) Start()
- func (svc *Service) Stop()
- func (svc *Service) Update()
- func (svc *Service) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetScheduleService ¶
func GetScheduleService(path string, opts ...Option) (svc interfaces.ScheduleService, err error)
func NewScheduleService ¶
func NewScheduleService(opts ...Option) (svc2 interfaces.ScheduleService, err error)
func ProvideGetScheduleService ¶
func ProvideGetScheduleService(path string, opts ...Option) func() (svr interfaces.ScheduleService, err error)
func ProvideScheduleService ¶
func ProvideScheduleService(path string, opts ...Option) func() (svc interfaces.ScheduleService, err error)
Types ¶
type Option ¶
type Option func(svc interfaces.ScheduleService)
func WithConfigPath ¶
func WithDelayIfStillRunning ¶
func WithDelayIfStillRunning() Option
func WithLocation ¶
func WithSkipIfStillRunning ¶
func WithSkipIfStillRunning() Option
func WithUpdateInterval ¶
type Service ¶
type Service struct { // dependencies interfaces.WithConfigPath // contains filtered or unexported fields }
func (*Service) Disable ¶
func (svc *Service) Disable(s interfaces.Schedule, args ...interface{}) (err error)
func (*Service) Enable ¶
func (svc *Service) Enable(s interfaces.Schedule, args ...interface{}) (err error)
func (*Service) GetLocation ¶
func (*Service) GetUpdateInterval ¶
func (*Service) SetLocation ¶
func (*Service) SetUpdateInterval ¶
Click to show internal directories.
Click to hide internal directories.