Documentation
¶
Overview ¶
Package hbcache manage []cluster.HeartbeatStream cache localnode
This cache will be populated from:
- heartbeat status
It provides the heartbeat for sub.hb.heartbeat ¶
The cache must be started with Start(ctx). It is stopped when ctx is done
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Heartbeats ¶
func Heartbeats() ([]daemonsubsystem.HeartbeatStream, bool)
Heartbeats retrieves the current list of heartbeat streams and their status, returning a boolean indicating changes since last cammand call.
func SetHeartbeats ¶
func SetHeartbeats(hbs []daemonsubsystem.HeartbeatStream, changed bool)
SetHeartbeats updates the heartbeats status cache
can be used from a heartbeat controller
Types ¶
Click to show internal directories.
Click to hide internal directories.