Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotFoundError ¶
type NotFoundError struct {
ID string
}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type Repo ¶
type Repo interface { ListAll() ([]ScheduledIncident, error) Create(Request) (ScheduledIncident, error) Read(string) (ScheduledIncident, error) Delete(string) error }
type RepoNotifier ¶
type RepoNotifier interface { ScheduledIncidentWasCreated(ScheduledIncident) ScheduledIncidentWasDeleted(ScheduledIncident) }
type Response ¶
func NewResponse ¶
func NewResponse(si ScheduledIncident) Response
func (Response) Description ¶
type Responses ¶
type Responses []Response
func NewResponses ¶
func NewResponses(sis []ScheduledIncident) Responses
type ScheduledIncident ¶
type ScheduledIncident struct { ID string Schedule string Incident incident.Request // contains filtered or unexported fields }
func (ScheduledIncident) Execute ¶
func (si ScheduledIncident) Execute() error
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func (Scheduler) ScheduledIncidentWasCreated ¶
func (s Scheduler) ScheduledIncidentWasCreated(si ScheduledIncident)
func (Scheduler) ScheduledIncidentWasDeleted ¶
func (s Scheduler) ScheduledIncidentWasDeleted(si ScheduledIncident)
Click to show internal directories.
Click to hide internal directories.