types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OverlayMembership

type OverlayMembership interface {
	// Called when a new local virtual node joins the overlay.
	AddTrader(guid []byte)
}

Node interface exposed to the overlay below.

type OverlayNode

type OverlayNode struct {
	// contains filtered or unexported fields
}

Represents a generic overlay node.

func NewOverlayNode

func NewOverlayNode(nodeIP string, port int, guid []byte) *OverlayNode

NewOverlayNode creates a new overlay node.

func (*OverlayNode) GUID

func (rn *OverlayNode) GUID() []byte

Node identifier

func (*OverlayNode) IP

func (rn *OverlayNode) IP() string

IP of the node

func (*OverlayNode) Port

func (rn *OverlayNode) Port() int

Port of the overlay daemon

Jump to

Keyboard shortcuts

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