model

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//NETWORK_LIST p2p message type
	NETWORK_LIST = "NETWORK_LIST"
	//NETWORK_STATE p2p message type
	NETWORK_STATE = "NETWORK_STATE"
	//REQUEST_NET_STATE p2p message type
	REQUEST_NET_STATE = "REQUEST_NET_STATE"
	//PEER p2p message type
	PEER = "PEER"
	//GET_PEER p2p message type
	GET_PEER = "GET_PEER"
	//PEER_LIST p2p message type
	PEER_LIST = "PEER_LIST"
	//GET_PEER_LIST p2p message type
	GET_PEER_LIST = "GET_PEER_LIST"
	//MESSAGE p2p message type
	MESSAGE = "MESSAGE"

	//COMMIT p2p message type
	COMMIT = "COMMIT"
	//APPROVE p2p message type
	APPROVE = "APPROVE"
	//DECLINE p2p message type
	DECLINE = "DECLINE"
	//BLOCK p2p message type
	BLOCK = "BLOCK"
	//GET_BLOCK p2p message type
	GET_BLOCK = "GET_BLOCK"
	//TRANSACTION p2p message type
	TRANSACTION = "TRANSACTION"
)

Functions

This section is empty.

Types

type PeerNode

type PeerNode struct {
	ID            string    `json:"id" storm:"id"`
	LastSeen      time.Time `json:"last_seen"`
	NetworkStatus string    `json:"network_status"`
	RemoteAddr    string    `json:"remote_addr"`
}

PeerNode Peers contains the peer info

Jump to

Keyboard shortcuts

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