sharedtypes

package
v1.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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