hbtdapi

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHbtdUrl string = "http://cray-hbtd/hmi/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type HBState

type HBState struct {
	XName        string `json:"XName"`
	Heartbeating bool   `json:"Heartbeating"`
}

type HBStatusPayload

type HBStatusPayload struct {
	XNames []string `json:"XNames"`
}

type HBStatusRsp

type HBStatusRsp struct {
	HBStates []HBState `json:"HBStates"`
}

type HBTD

type HBTD struct {
	Url    *url.URL
	Client *retryablehttp.Client
}

func NewHBTD

func NewHBTD(hbtdUrl string, httpClient *retryablehttp.Client, svcName string) *HBTD

Allocate and initialize new HBTD struct.

func (*HBTD) GetHeartbeatStatus

func (hbtd *HBTD) GetHeartbeatStatus(ids []string) ([]HBState, error)

Query HBTD for node heartbeat status.

Jump to

Keyboard shortcuts

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