common

package
v0.11.15-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: ISC Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultTimeout = 120 * time.Second

DefaultTimeout is the default duration to wait for enqueuing/dequeuing to/from routes.

Variables

View Source
var ErrPeerWithSameIDExists = errors.New("ready peer with the same ID already exists")

ErrPeerWithSameIDExists signifies that a peer with the same ID already exist.

Functions

This section is empty.

Types

type Flow added in v0.11.10

type Flow struct {
	Name        string
	ExecuteFunc flowExecuteFunc
}

Flow is a a data structure that is used in order to associate a p2p flow to some route in a router.

type FlowInitializeFunc added in v0.11.10

type FlowInitializeFunc func(route *routerpkg.Route, peer *peerpkg.Peer) error

FlowInitializeFunc is a function that is used in order to initialize a flow

Jump to

Keyboard shortcuts

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