topologyupdater

package
v0.0.0-...-197aa00 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const APIURL = "https://api.clio.one/htopology/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type PromResponse

type PromResponse struct {
	Status string    `json:"status"`
	Data   PromeData `json:"data"`
}

type PromeData

type PromeData struct {
	ResultType string         `json:"resultType"`
	Result     []ResultMetric `json:"result"`
}

type QueryResult

type QueryResult struct {
	Name     string `json:"__name__"`
	Instance string `json:"instance"`
	Job      string `json:"job"`
}

type ResultMetric

type ResultMetric struct {
	Metric QueryResult   `json:"metric"`
	Value  []interface{} `json:"value"`
}

type TU

type TU struct {
	// contains filtered or unexported fields
}

func New

func New(c *config.C, nodeID int) (tu *TU, err error)

func (*TU) GetCardanoBlock

func (t *TU) GetCardanoBlock() (string, error)

func (*TU) GetTopology

func (t *TU) GetTopology() (UpdaterGetNodes, error)

func (*TU) Ping

func (t *TU) Ping() (int, error)

type UpdaterGetNodes

type UpdaterGetNodes struct {
	Resultcode string            `json:"resultcode"`
	Datetime   string            `json:"datetime"`
	ClientIP   string            `json:"clientIp"`
	Iptype     uint              `json:"iptype"`
	Msg        string            `json:"msg"`
	Producers  []cardanocfg.Node `json:"producers"`
}

Jump to

Keyboard shortcuts

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