Documentation
¶
Index ¶
- Constants
- func Copy(srcStore Store, destStore writableStore) error
- type CheckRecord
- type DBStore
- type FileStore
- type FileStoreData
- type NotificationPreferences
- type NotificationRecord
- type Preferences
- type PreferencesRecord
- type S3Store
- type S3StoreData
- type Store
- type TypeConverter
- type URLStore
- type URLStoreData
Constants ¶
View Source
const DefaultFailCountAlertThreshold = 1
View Source
const DefaultRepeatFailAlerts = false
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckRecord ¶
type CheckRecord struct { ID string `db:"id"` Name string `db:"name"` Type string `db:"type"` SendAlerts []string `db:"send_alerts"` Backoff backoffs.Config `db:"backoff"` Config json.RawMessage `db:"config"` Assertions []assertions.Config `db:"assertions"` }
type DBStore ¶
type DBStore struct {
DB *gorp.DbMap
}
func NewDBStore ¶
func (*DBStore) Preferences ¶
func (c *DBStore) Preferences() (Preferences, error)
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
func (*FileStore) Preferences ¶
func (f *FileStore) Preferences() (Preferences, error)
type FileStoreData ¶
type FileStoreData struct { Checks []checks.Config `json:"checks"` Notifications []notifiers.Config `json:"notifications"` Preferences Preferences `json:"preferences"` }
type NotificationPreferences ¶
type NotificationRecord ¶
type Preferences ¶
type Preferences struct {
Notifications NotificationPreferences `json:"notifications"`
}
type PreferencesRecord ¶
type PreferencesRecord struct { ID int `db:"id"` Preferences json.RawMessage `db:"preferences"` }
type S3Store ¶ added in v0.2.3
type S3Store struct { URL string // contains filtered or unexported fields }
func NewS3Store ¶ added in v0.2.3
func (*S3Store) Notifications ¶ added in v0.2.3
func (*S3Store) Preferences ¶ added in v0.2.3
func (s *S3Store) Preferences() (Preferences, error)
type S3StoreData ¶ added in v0.2.3
type S3StoreData struct { Checks []checks.Config `json:"checks"` Notifications []notifiers.Config `json:"notifications"` Preferences Preferences `json:"preferences"` }
type TypeConverter ¶
type TypeConverter struct{}
func (TypeConverter) FromDb ¶
func (t TypeConverter) FromDb(target interface{}) (gorp.CustomScanner, bool)
func (TypeConverter) ToDb ¶
func (t TypeConverter) ToDb(val interface{}) (interface{}, error)
type URLStore ¶ added in v0.2.2
type URLStore struct { URL string // contains filtered or unexported fields }
func NewURLStore ¶ added in v0.2.2
func (*URLStore) Notifications ¶ added in v0.2.2
func (*URLStore) Preferences ¶ added in v0.2.2
func (u *URLStore) Preferences() (Preferences, error)
type URLStoreData ¶ added in v0.2.2
type URLStoreData struct { Checks []checks.Config `json:"checks"` Notifications []notifiers.Config `json:"notifications"` Preferences Preferences `json:"preferences"` }
Click to show internal directories.
Click to hide internal directories.