peertopology

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrUnknownTopology is thrown when a passed topology is not known
	ErrUnknownTopology = cerr.Error("unknown peering topology")
)

Variables

This section is empty.

Functions

func ConnectPeersForTopology

func ConnectPeersForTopology(topology string, hosts []*host.Host) error

ConnectPeersForTopology builds the specified topology

Types

type PeerTopology

type PeerTopology interface {
	Build(hosts []*host.Host) error
}

PeerTopology is a peering algorithm that connects hosts

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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