nodeinfo

package
v0.0.0-...-640f24c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func StartServer

func StartServer(n protocol.Noder)

Types

type Info

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

type NgbNodeInfo

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

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