Documentation ¶
Index ¶
- func BlockMissedTracker(moniker, network string, missed int)
- func CatchingUpState(sCU, rCU bool, moniker, network string, diff, maxDiff int64)
- func Difference(one, two, min int64, ctx Context) (string, bool)
- func HealthCheck(moniker, network, rpc string, counter int, timeDelta time.Duration, ...) (bool, bool)
- func PeersCount(sPC, rPC int, moniker, network string)
- func Unknown(s string) string
- func VotingPower(sVP, rVP, sVPC int64, moniker, network string)
- type Context
- type Event
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockMissedTracker ¶
BlockMissedTracker check missed blocks in a row
func CatchingUpState ¶
CatchingUpState check cachingUp state , alert if true
func Difference ¶
Difference diff two values , comparing with minimal difference and return increase/decrease message for alert
func HealthCheck ¶
func HealthCheck(moniker, network, rpc string, counter int, timeDelta time.Duration, lastSeenAt time.Time, lastStatus bool) (bool, bool)
HealthCheck check node health
func PeersCount ¶
PeersCount check for peers count, alert if changed
func VotingPower ¶
VotingPower comparing voting power of validator , if changed - send alert
Types ¶
type Status ¶
type Status conf.NodeStatus
Click to show internal directories.
Click to hide internal directories.