mblockchain_vars

package
v0.0.0-...-4adfca9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// peer update actions
	PEER_UPDATE_ACTION_ADD       = "ADD"
	PEER_UPDATE_ACTION_UPDATE    = "UPDATE"
	PEER_UPDATE_ACTION_REMOVE    = "REMOVE"
	PEER_UPDATE_ACTION_IP_UPDATE = "IP_UPDATE"

	// edge update actions
	EDGE_PEER_UPDATE_ACTION_SUBSCRIBE = "SUBSCRIBE"
	EDGE_PEER_UPDATE_ACTION_EXPIRE    = "EXPIRE"
	EDGE_PEER_UPDATE_ACTION_CANCEL    = "CANCEL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgePeerUpdate

type EdgePeerUpdate struct {
	Action         string
	PeerPubKeyHash string
	Expiration     uint
}

type NodeInfo

type NodeInfo struct {
	ID        string // a unique identifier for the node, format is "#n" where n is a number
	IP        net.IP // ip of the node
	Hostname  string // hostname of the node
	TimeAdded string // timestamp of which the node was created
}

type PeerUpdate

type PeerUpdate struct {
	Action         string // Add for now, but we can add things like Remove/Update
	PeerPubKeyHash string
	IP             string
	NetMask        int
}

Jump to

Keyboard shortcuts

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