etcd: Index | Files

package v3alarm

import ""

Package v3alarm manages health status alarms in etcd.


Package Files


type AlarmStore Uses

type AlarmStore struct {
    // contains filtered or unexported fields

AlarmStore persists alarms to the backend.

func NewAlarmStore Uses

func NewAlarmStore(lg *zap.Logger, bg BackendGetter) (*AlarmStore, error)

func (*AlarmStore) Activate Uses

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

func (*AlarmStore) Deactivate Uses

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

func (*AlarmStore) Get Uses

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

type BackendGetter Uses

type BackendGetter interface {
    Backend() backend.Backend

Package v3alarm imports 5 packages (graph) and is imported by 26 packages. Updated 2020-05-14. Refresh now. Tools for package owners.