Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusUnknown = "unknown" StatusUp = "up" StatusMaintenance = "maintenance" StatusDown = "down" )
Website status enumaration.
View Source
const ( ResultUp = "up" ResultDown = "down" )
Check result enumaration.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { ID uint `json:"id"` WebsiteID uint `json:"websiteId,omitempty" db:"website_id"` Checked time.Time `json:"checkedAt" db:"checked_at"` Result string `json:"result"` Latency *Latency `json:"latency"` }
Check ...
type Entry ¶
type Entry struct { Time time.Time `json:"time"` Status string `json:"status"` Duration time.Duration `json:"duration"` }
Entry ...
type Latency ¶
type Latency struct { DNS time.Duration `json:"dns"` Connection time.Duration `json:"connection"` TLS time.Duration `json:"tls"` Application time.Duration `json:"application"` Total time.Duration `json:"total"` }
Latency ...
Click to show internal directories.
Click to hide internal directories.