Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronScheduler ¶
type CronScheduler struct {
// contains filtered or unexported fields
}
func NewCronScheduler ¶
func NewCronScheduler(logger *log.Logger) *CronScheduler
func (*CronScheduler) AddEntry ¶
func (c *CronScheduler) AddEntry(id EntryID, spec string, executor Executor) error
func (*CronScheduler) RemoveEntry ¶
func (c *CronScheduler) RemoveEntry(id EntryID)
func (*CronScheduler) Start ¶
func (c *CronScheduler) Start()
func (*CronScheduler) Stop ¶
func (c *CronScheduler) Stop()
Stop stops CronScheduler Start should always be called before this Blocks until it really stops
func (*CronScheduler) ValidateSpec ¶
func (c *CronScheduler) ValidateSpec(spec string) error
type MockScheduler ¶
type MockScheduler struct { }
func (*MockScheduler) AddEntry ¶
func (s *MockScheduler) AddEntry(id EntryID, spec string, executor Executor) error
func (*MockScheduler) RemoveEntry ¶
func (s *MockScheduler) RemoveEntry(id EntryID)
func (*MockScheduler) ValidateSpec ¶
func (s *MockScheduler) ValidateSpec(spec string) error
Click to show internal directories.
Click to hide internal directories.