model

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//P2P
	NETWORK_LIST      = "NETWORK_LIST"
	NETWORK_STATE     = "NETWORK_STATE"
	REQUEST_NET_STATE = "REQUEST_NET_STATE"
	PEER              = "PEER"
	GET_PEER          = "GET_PEER"

	PEER_LIST     = "PEER_LIST"
	GET_PEER_LIST = "GET_PEER_LIST"

	MESSAGE = "MESSAGE"

	//P2P BLOCK
	COMMIT      = "COMMIT"
	APPROVE     = "APPROVE"
	DECLINE     = "DECLINE"
	BLOCK       = "BLOCK"
	GET_BLOCK   = "GET_BLOCK"
	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"`
}

Peers contains the peer info

Jump to

Keyboard shortcuts

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