Documentation ¶
Index ¶
- type EtcdStorage
- func (etcds *EtcdStorage) AllCheckins() (map[string]time.Time, error)
- func (etcds *EtcdStorage) AllIncidents() (map[string][]string, error)
- func (etcds *EtcdStorage) Purge(prefix string) error
- func (etcds *EtcdStorage) StoreCheckin(key string, value time.Time) error
- func (etcds *EtcdStorage) StoreIncident(key string, date string, value []time.Time) error
- type StorageImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdStorage ¶
type EtcdStorage struct {
// contains filtered or unexported fields
}
EtcdStorage is the StorageImpl interface implementation for using Etcd as the backing store
func NewEtcdStorage ¶
func NewEtcdStorage(endpoints []string) (*EtcdStorage, error)
NewEtcdStorage instantiates the type and creates the etcd client
func (*EtcdStorage) AllCheckins ¶
func (etcds *EtcdStorage) AllCheckins() (map[string]time.Time, error)
All returns a map of all keys and values
func (*EtcdStorage) AllIncidents ¶
func (etcds *EtcdStorage) AllIncidents() (map[string][]string, error)
func (*EtcdStorage) Purge ¶
func (etcds *EtcdStorage) Purge(prefix string) error
Purge removes all keys with directory/env prefix
func (*EtcdStorage) StoreCheckin ¶
func (etcds *EtcdStorage) StoreCheckin(key string, value time.Time) error
Store stores the key
func (*EtcdStorage) StoreIncident ¶
Click to show internal directories.
Click to hide internal directories.