Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("schedule already exists")
ErrAlreadyExists is returned when calling Publish if a schedule already exists
Functions ¶
This section is empty.
Types ¶
type SchedStore ¶
type SchedStore interface {
// Retrieve retrieves the schedule for the given date
// The date must be in the local time zone
Retrieve(date time.Time) (*schedule.Schedule, error)
// Publish publishes the schedule for the given date
// The date must be in the local time zone
Publish(date time.Time, sched *schedule.Schedule) error
}
SchedStore stores schedule of terminations
Click to show internal directories.
Click to hide internal directories.