Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Incident ¶
type Incident struct { Title string Components []string `gorm:"column:components;type:jsonb"` Events IncidentEventArray `gorm:"column:events;type:jsonb"` StartTime time.Time `gorm:"secondarykey"` EndTime *time.Time `gorm:"secondarykey"` Description *string DeepLink string `gorm:"primarykey"` Impact Impact `gorm:"secondarykey"` StatusPageUrl string `gorm:"secondarykey"` }
type IncidentEvent ¶
func NewIncidentEvent ¶
func NewIncidentEvent(title string, description string, time time.Time) IncidentEvent
type IncidentEventArray ¶
type IncidentEventArray []IncidentEvent
func (*IncidentEventArray) Scan ¶
func (sla *IncidentEventArray) Scan(src interface{}) error
type StatusPage ¶
type StatusPage struct { Name string `gorm:"secondarykey"` URL string `gorm:"primarykey"` // Used to determine if we should run a scrape for this status page LastHistoricallyScraped time.Time LastCurrentlyScraped time.Time }
func NewStatusPage ¶
func NewStatusPage(name string, url string) StatusPage
Click to show internal directories.
Click to hide internal directories.