# Packages
No description provided by the author
# Functions
MigrateAll executes all migrations.
NewAlarm creates new Alarm instance.
NewAlarmResponse creates new AlarmResponse instance.
NewEmailFactory starts a new EmailFactory instance.
NewErrIntervalTooSmall returns new ErrIntervalTooSmall.
NewIncident creates new Incident instance.
NewIncidentResponse creates new IncidentResponse instance.
NewListAlarmsResponse creates new ListAlarmsResponse instance.
NewListIncidentsResponse creates new ListIncidentsResponse instance.
NewListRegionsResponse creates new ListRegionsResponse instance.
NewListResponseTimesResponse creates new ListResponseTimesResponse instance.
NewRegionResponse creates new ResultResponse instance.
NewService starts a new Service instance.
NewSlackFactory starts a new SlackFactory instance.
RegisterRoutes registers route handlers for the alarms service.
# Constants
EmailTimeFormat specifies how the time will be parsed in emails.
SlackTimeFormat specifies how the time will be parsed in Slack messages.
# Variables
AlarmCheckTimeout defines how long to wait before considering alarm check timed out.
ErrAlarmNotFound ...
ErrAlarmStateNotFound ...
ErrCheckAlreadyTriggered ...
ErrDeleteAlarmPermission ...
ErrGetAlarmPermission ...
ErrIncidentTypeNotFound ...
ErrListAlarmIncidentsPermission ...
ErrListAlarmResponseTimesPermission ...
ErrListAlarmsPermission ...
ErrMaxAlarmsLimitReached ...
ErrMaxResponseTimeTooBig ...
ErrRegionNotFound ...
ErrUpdateAlarmPermission ...
FreeTierMaxAlarms ...
FreeTierMaxEmailsPerInterval ...
FreeTierMinAlarmInterval ...
MaxResponseTimeLimit limits max response time to a sensible biggest value.
# Structs
Alarm ...
AlarmRequest ...
AlarmResponse ...
AlarmState is a state that an alarm can be in.
EmailFactory facilitates construction of email.Email objects.
EmailFactoryMock is a mocked object implementing EmailFactoryInterface.
ErrIntervalTooSmall ...
Incident ...
IncidentResponse ...
IncidentType ...
ListAlarmsResponse ...
ListIncidentsResponse ...
ListRegionsResponse ...
ListResponseTimesResponse ...
NotificationCounter ...
Region is a region from where alarm checks will be run.
RegionResponse ...
Service struct keeps config and db objects to avoid passing them around.
SlackFactory facilitates construction of Slack messages.
SlackFactoryMock is a mocked object implementing SlackFactoryInterface.
# Interfaces
EmailFactoryInterface defines exported methods.
ServiceInterface defines exported methods.
SlackFactoryInterface defines exported methods.