Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthStatus ¶
type HealthStatus struct { IsHealthy bool `json:"is_healthy"` Error error `json:"error,omitempty"` // contains filtered or unexported fields }
HealthStatus is a struct that holds the health status of the node. Should be safe for concurrent access.
func (*HealthStatus) Get ¶
func (h *HealthStatus) Get() (isHealthy bool, err error)
Get returns the health status of the node.
func (*HealthStatus) Set ¶
func (h *HealthStatus) Set(isHealthy bool, err error)
Set sets the health status of the node.
Click to show internal directories.
Click to hide internal directories.