package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

FakeNodeVitality creates a node vitality record that is either dead or alive by all accounts.
TestCreateNodeVitality creates a test instance of node vitality which is easy to simulate different health conditions without requiring the need to take nodes down or publish anything through gossip.
ValidateTransition validates transitions of the liveness record, returning an error if the proposed transition is invalid.

# Constants

# Structs

IsLiveMapEntry encapsulates data about current liveness for a node based on the liveness range.
NodeVitality should be used any place other than epoch leases where it is necessary to determine if a node is currently alive and what its health is.
TestNodeVitality is a test class for simulating and modifying NodeLiveness directly.

# Interfaces

NodeVitalityInterface is the interface code that uses NodeLiveness should use.

# Type aliases

IsLiveMap is a type alias for a map from NodeID to IsLiveMapEntry.