schedule

package
v1.0.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL