nodeinfo

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: LGPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nodeinfo privides functions for nodeinfo server

Index

Constants

View Source
const (
	VERIFYNODE  = "Verify Node"
	SERVICENODE = "Service Node"
)
View Source
const TEMPLATE_PAGE = `` /* 2761-byte string literal not displayed */

Variables

This section is empty.

Functions

func StartServer

func StartServer(n p2p.P2P)

Types

type Info

type Info struct {
	NodeVersion   string
	BlockHeight   uint32
	NeighborCnt   int
	Neighbors     []NgbNodeInfo
	HttpRestPort  int
	HttpWsPort    int
	HttpJsonPort  int
	HttpLocalPort int
	NodePort      uint16
	NodeId        string
	NodeType      string
}

type NgbNodeInfo

type NgbNodeInfo struct {
	NgbId         string //neighbor node id
	NgbType       string
	NgbAddr       string
	HttpInfoAddr  string
	HttpInfoPort  uint16
	HttpInfoStart bool
	NgbVersion    string
}

type NgbNodeInfoSlice

type NgbNodeInfoSlice []NgbNodeInfo

func (NgbNodeInfoSlice) Len

func (n NgbNodeInfoSlice) Len() int

func (NgbNodeInfoSlice) Less

func (n NgbNodeInfoSlice) Less(i, j int) bool

func (NgbNodeInfoSlice) Swap

func (n NgbNodeInfoSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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