rpc

package
v1.10.3-0...-bcc0b51 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootNodeMetadata

type BootNodeMetadata struct {
	Version      string  `json:"version"`
	Network      string  `json:"network"`
	NodeBootTime int64   `json:"node-unix-start-time"`
	PeerID       peer.ID `json:"peerid"`
	C            C       `json:"p2p-connectivity"`
}

BootNodeMetadata captures select metadata of the RPC answering boot node

type BootNodePeerInfo

type BootNodePeerInfo struct {
	PeerID         peer.ID   `json:"peerid"`
	KnownPeers     []peer.ID `json:"known-peers"`
	ConnectedPeers []peer.ID `json:"connected-peers"`
	C              C         `json:"c"`
}

BootNodePeerInfo captures the peer connectivity info of the boot node

type C

type C struct {
	TotalKnownPeers int `json:"total-known-peers"`
	Connected       int `json:"connected"`
	NotConnected    int `json:"not-connected"`
}

type Config

type Config struct {
	HarmonyConfig harmonyconfig.HarmonyConfig
	NodeConfig    nodeconfig.ConfigType
	ChainConfig   params.ChainConfig
}

type StructuredResponse

type StructuredResponse = map[string]interface{}

StructuredResponse type of RPCs

Jump to

Keyboard shortcuts

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