Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("no peer found") ErrWantSelf = errors.New("node wants self") )
Functions ¶
This section is empty.
Types ¶
type ClosestPeerer ¶
type Disconnecter ¶
type Driver ¶
type Driver interface { PeerAdder ClosestPeerer EachPeerer Notifier NeighborhoodDepth() uint8 SubscribePeersChange() (c <-chan struct{}, unsubscribe func()) io.Closer }
type EachPeerFunc ¶
EachPeerFunc is a callback that is called with a peer and its PO
type EachPeerer ¶
type EachPeerer interface { // EachPeer iterates from closest bin to farthest EachPeer(EachPeerFunc) error // EachPeerRev iterates from farthest bin to closest EachPeerRev(EachPeerFunc) error }
type Notifier ¶
type Notifier interface { Connecter Disconnecter }
Click to show internal directories.
Click to hide internal directories.