types

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockExplorerStatus

type BlockExplorerStatus struct {
	CoreStatus

	BlockExplorerVersion     string
	BlockExplorerVersionHash string
}

type CoreStatus

type CoreStatus struct {
	CurrentTime     time.Time
	CoreBlockHeight uint64
	CoreTime        time.Time

	CoreChainId        string
	CoreAppVersion     string
	CoreAppVersionHash string

	Environment string
	Internal    bool
	Type        NodeType
}

type DataNodeStatus

type DataNodeStatus struct {
	CoreStatus

	DataNodeBlockHeight uint64
	DataNodeTime        time.Time

	RESTReqDuration time.Duration
	GQLReqDuration  time.Duration
	GRPCReqDuration time.Duration

	GRPCScore         uint64
	RESTScore         uint64
	GQLScore          uint64
	Data1DayScore     uint64
	Data1WeekScore    uint64
	DataArchivalScore uint64
}

func (*DataNodeStatus) GetScore added in v0.8.2

func (s *DataNodeStatus) GetScore() uint64

func (*DataNodeStatus) GetUpToDateScore added in v0.8.2

func (s *DataNodeStatus) GetUpToDateScore() uint64

type EthereumNodeStatuses added in v0.7.0

type EthereumNodeStatuses struct {
	NodeHealthy map[string]bool

	UpdateTime time.Time
}

type NodeDownStatus

type NodeDownStatus struct {
	Error       error
	Environment string
	Internal    bool
	Type        NodeType
}

type NodeType

type NodeType string
const (
	CoreType          NodeType = "core"
	DataNodeType      NodeType = "datanode"
	BlockExplorerType NodeType = "blockexplorer"
)

func (NodeType) String

func (n NodeType) String() string

Jump to

Keyboard shortcuts

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