Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastThisNode ¶
func BroadcastThisNode() error
BroadcastThisNode - Broadcasts thisNode to the Network
func RequestNodeList ¶
RequestNodeList - Requests the nodeList from a Network Node
func StartRoutingNode ¶
StartRoutingNode - Start the Routing Node (TCP Server)
Types ¶
type NodeStruct ¶
type NodeStruct struct { Index int `json:"index"` Status string `json:"status"` Timestamp string `json:"timestamp"` NodeName string `json:"nodename"` NodeIP string `json:"nodeip"` NodeHTTPPort string `json:"nodehttpport"` NodeTCPPort string `json:"nodetcpport"` NetworkIP string `json:"networkip"` NetworkTCPPort string `json:"networktcpport"` TestBlockChain bool `json:"testblockchain"` WalletOnly bool `json:"walletonly"` ToolVersion string `json:"toolversion"` }
NodeStruct is your node info
func AppendNewNode ¶
func AppendNewNode(messageNewNode string) NodeStruct
AppendNewNode - Appends a new Node to the nodeList
func GetNode ¶
func GetNode(id string) NodeStruct
GetNode - Gets a Node (via Index number) from the nodeList
Click to show internal directories.
Click to hide internal directories.