common

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: ISC Imports: 4 Imported by: 0

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

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

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