repository

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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