alarm - ActiveState ActiveGo 1.8
...

Package alarm

import "github.com/coreos/etcd/alarm"
Overview
Index

Overview ▾

Package alarm manages health status alarms in etcd.

type AlarmStore

AlarmStore persists alarms to the backend.

type AlarmStore struct {
    // contains filtered or unexported fields
}

func NewAlarmStore

func NewAlarmStore(bg BackendGetter) (*AlarmStore, error)

func (*AlarmStore) Activate

func (a *AlarmStore) Activate(id types.ID, at pb.AlarmType) *pb.AlarmMember

func (*AlarmStore) Deactivate

func (a *AlarmStore) Deactivate(id types.ID, at pb.AlarmType) *pb.AlarmMember

func (*AlarmStore) Get

func (a *AlarmStore) Get(at pb.AlarmType) (ret []*pb.AlarmMember)

type BackendGetter

type BackendGetter interface {
    Backend() backend.Backend
}