abstract

package
v0.0.0-...-9c04300 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mesh

type Mesh interface {
	Info() *proto.Mesh
	State() (*proto.State, bool)
	Mail(*proto.Mail) error
}

type Node

type Node interface {
	Info() *proto.Node
	Mesh() Mesh
	Mail(*proto.Mail) error
}

type Process

type Process interface {
	Local() Mesh
	Router() Router
	Logger() logis.Logger
	NewConnector(string) network.Connector
}

type Router

type Router interface {
	Insert(Node)
	Remove(proto.NodeID)
	Expired(proto.NodeType)
	ByID(proto.NodeID) Node
	ByIDList([]proto.NodeID) []Node
	ByKey(proto.NodeType, proto.NodeKey) Node
	ByKeys(proto.NodeType, []proto.NodeKey) []Node
	ByLoad(proto.NodeType) Node
	ByType(proto.NodeType) []Node
}

Jump to

Keyboard shortcuts

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