Back to / alarm

Package alarm

Latest Go to latest

The latest major version is .

Published: May 20, 2020 | License: Apache-2.0 | Module:


Package alarm manages health status alarms in etcd.


type AlarmStore

type AlarmStore struct {
	// contains filtered or unexported fields

AlarmStore persists alarms to the backend.

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier