Documentation
¶
Index ¶
- type Store
- func (s *Store) AddResult(result uptime.CheckResult) error
- func (s *Store) ConsecutiveFailures(checkID string) int
- func (s *Store) CreateCheck(check uptime.Check) error
- func (s *Store) DeleteCheck(id string) error
- func (s *Store) GetCheck(id string) (*uptime.Check, error)
- func (s *Store) LastFailure(checkID string) (*uptime.CheckResult, error)
- func (s *Store) LastResult(checkID string) (*uptime.CheckResult, error)
- func (s *Store) ListChecks() ([]uptime.Check, error)
- func (s *Store) Results(checkID string) ([]uptime.CheckResult, error)
- func (s *Store) UpdateCheck(check uptime.Check) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-memory uptime store with a circular buffer per check.
func (*Store) ConsecutiveFailures ¶
func (*Store) DeleteCheck ¶
func (*Store) LastFailure ¶
func (s *Store) LastFailure(checkID string) (*uptime.CheckResult, error)
func (*Store) LastResult ¶
func (s *Store) LastResult(checkID string) (*uptime.CheckResult, error)
Click to show internal directories.
Click to hide internal directories.