Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleHook ¶
type ScheduleHook struct {
Name string
Schedule []schedule_manager.ScheduleConfig
}
type ScheduledHooksStorage ¶
type ScheduledHooksStorage []*ScheduleHook
func (*ScheduledHooksStorage) AddHook ¶
func (s *ScheduledHooksStorage) AddHook(hookName string, config []schedule_manager.ScheduleConfig)
AddHook adds hook to the hook schedule.
func (ScheduledHooksStorage) GetCrontabs ¶
func (s ScheduledHooksStorage) GetCrontabs() []string
GetCrontabs returns all schedules from the hook store.
func (ScheduledHooksStorage) GetHooksForSchedule ¶
func (s ScheduledHooksStorage) GetHooksForSchedule(crontab string) []*ScheduleHook
GetHooksForSchedule returns hooks for specific schedule.
func (*ScheduledHooksStorage) RemoveHook ¶
func (s *ScheduledHooksStorage) RemoveHook(hookName string)
RemoveHook removes hook from the hook storage.
Click to show internal directories.
Click to hide internal directories.