Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
List(context.Context) (model.ScheduleEvents, error)
Register(context.Context, ...model.ScheduleEvent) error
Unregister(context.Context, ...model.ScheduleEvent) error
}
Action is the interface to register schedule event to action.
type ActionConfigurator ¶
type ActionConfigurator interface {
Configure(model.ActionConfig) (Action, error)
}
ActionConfigurator is the interface to configure action.
type Calendar ¶
type Calendar interface {
List(ctx context.Context, since, until time.Time) (model.Schedules, error)
}
Calendar is the interface to control calendar service.
type Config ¶
type Config interface {
ActionNames(model.ScheduleEvent) ([]model.ActionName, bool)
ActionConfigMap() map[model.ActionName]model.ActionConfig
RunningMode() model.RunningMode
SyncInterval() time.Duration
Calendar() string
}
Config is the interface to get configurations.
Click to show internal directories.
Click to hide internal directories.