raftleader

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRaftLeadershipError added in v1.9.0

func IsRaftLeadershipError(err error) bool

Types

type LeaderObserver added in v1.9.0

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

func NewRaftLeaderHealthObserver

func NewRaftLeaderHealthObserver(logger log.Logger, m *Metrics) *LeaderObserver

func (*LeaderObserver) Deregister added in v1.9.0

func (hs *LeaderObserver) Deregister(r *raft.Raft)

func (*LeaderObserver) Register added in v1.9.0

func (hs *LeaderObserver) Register(r *raft.Raft, cb func(st raft.RaftState))

type Metrics

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

func NewMetrics

func NewMetrics(reg prometheus.Registerer) *Metrics

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL