types

package
v0.14.1-preview.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 3 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 EntityHash added in v0.12.0

type EntityHash [32]byte

type EthereumContractsEvents added in v0.12.0

type EthereumContractsEvents struct {
	ID              string
	NodeName        string
	EventName       string
	ContractAddress string
	Count           uint64
}

func (EthereumContractsEvents) Hash added in v0.12.0

type EthereumNodeHeight added in v0.12.0

type EthereumNodeHeight struct {
	NodeName    string
	ChainId     string
	RPCEndpoint string
	Height      uint64
	UpdateTime  time.Time
}

type EthereumNodeStatus added in v0.14.0

type EthereumNodeStatus struct {
	ChainId     string
	NodeName    string
	RPCEndpoint string
	Healthy     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