Versions in this module Expand all Collapse all v0 v0.3.0 Jul 8, 2016 Changes in this version + var ErrNotFound = fmt.Errorf("item not found") + type AlertIterator interface + Next func() <-chan *types.Alert + func NewAlertIterator(ch <-chan *types.Alert, done chan struct{}, err error) AlertIterator + type Alerts interface + Get func(model.Fingerprint) (*types.Alert, error) + GetPending func() AlertIterator + Put func(...*types.Alert) error + Subscribe func() AlertIterator + type Iterator interface + Close func() + Err func() error + type MemAlerts struct + func NewMemAlerts(data *MemData) *MemAlerts + func (a *MemAlerts) Get(fp model.Fingerprint) (*types.Alert, error) + func (a *MemAlerts) GetPending() AlertIterator + func (a *MemAlerts) Put(alerts ...*types.Alert) error + func (a *MemAlerts) Subscribe() AlertIterator + type MemData struct + func NewMemData() *MemData + type MemNotifies struct + func NewMemNotifies(data *MemData) *MemNotifies + func (n *MemNotifies) Get(dest string, fps ...model.Fingerprint) ([]*types.NotifyInfo, error) + func (n *MemNotifies) Set(ns ...*types.NotifyInfo) error + type MemSilences struct + func NewMemSilences() *MemSilences + func (s *MemSilences) All() ([]*types.Silence, error) + func (s *MemSilences) Del(id uint64) error + func (s *MemSilences) Get(id uint64) (*types.Silence, error) + func (s *MemSilences) Mutes(lset model.LabelSet) bool + func (s *MemSilences) Set(sil *types.Silence) (uint64, error) + type Notifies interface + Get func(dest string, fps ...model.Fingerprint) ([]*types.NotifyInfo, error) + Set func(ns ...*types.NotifyInfo) error + type Silences interface + All func() ([]*types.Silence, error) + Del func(uint64) error + Get func(uint64) (*types.Silence, error) + Set func(*types.Silence) (uint64, error)