types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 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
}

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