response

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain struct {
	Height       int    `json:"height"`
	CurrentHash  string `json:"current_hash"`
	CurrentEpoch string `json:"current_epoch"`
}

type Node

type Node struct {
	P2PInfo    *NodeInfo   `json:"p2p_info"`
	P2PPeers   []*NodeInfo `json:"p2p_peers"`
	Blockchain *Blockchain `json:"blockchain"`
	IsSync     bool        `json:"is_sync"`
	Progress   *Progress   `json:"progress"`
}

type NodeInfo

type NodeInfo struct {
	ID   string `json:"id"`   // Unique node identifier (also the encryption key)
	Name string `json:"name"` // Name of the node, including client type, version, OS, custom data
	Addr string `json:"addr"`
}

type Progress

type Progress struct {
	StartingBlock uint32 `json:"starting_block"`
	CurrentBlock  uint32 `json:"current_block"`
	HighestBlock  uint32 `json:"highest_block"`
	PulledStates  uint32 `json:"pulled_states"`
	KnownStates   uint32 `json:"known_states"`
}

Progress progress of synchronization

Jump to

Keyboard shortcuts

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