# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
NewBlockPeerError wraps error and creates a special error that is treated specially by p2p.
NewChunkDeliveryError is a convenience constructor for ChunkDeliveryError.
NewConnectionBackoffError creates new `ConnectionBackoffError` with provided underlying error and `tryAfter` timestamp.
NewDisconnectError wraps error and creates a special error that is treated specially by p2p.
NewIncompatibleStreamError wraps the error that is the cause of stream incompatibility with IncompatibleStreamError that it can be detected and returns it.
NewSwarmStreamName constructs a libp2p compatible stream name out of protocol name and version and stream name.
WithBlocklistStreams will mutate the given spec and replace the handler with a always erroring one.
WithDisconnectStreams will mutate the given spec and replace the handler with a always erroring one.
# Constants
No description provided by the author
Common header names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrAlreadyConnected is returned if connect was called for already connected node.
ErrDialLightNode is returned if connect was attempted to a light node.
No description provided by the author
ErrPeerBlocklisted is returned if peer is on blocklist.
ErrPeerNotFound should be returned by p2p service methods when the requested peer is not found.
No description provided by the author
# Structs
BlockListedPeer holds information about a Peer that is blocked.
No description provided by the author
No description provided by the author
ConnectionBackoffError indicates that connection calls will not be executed until `tryAfter` timetamp.
DisconnectError is an error that is specifically handled inside p2p.
IncompatibleStreamError is the error that should be returned by p2p service NewStream method when the stream or its version is not supported.
Peer holds information about a Peer.
ProtocolSpec defines a collection of Stream specifications with handlers.
StreamSpec defines a Stream handling within the protocol.
# Interfaces
No description provided by the author
DebugService extends the Service with method used for debugging.
No description provided by the author
No description provided by the author
NetworkStatuser handles bookkeeping of the network availability status.
No description provided by the author
No description provided by the author
PickyNotifier can decide whether a peer should be picked.
Pinger interface is used to ping a underlay address which is not yet known to the bee node.
No description provided by the author
No description provided by the author
No description provided by the author
Service provides methods to handle p2p Peers and Protocols.
Stream represent a bidirectional data Stream.
Streamer is able to create a new Stream.
No description provided by the author
No description provided by the author
# Type aliases
HandlerFunc handles a received Stream from a Peer.
HandlerMiddleware decorates a HandlerFunc by returning a new one.
Headers represents a collection of p2p header key value pairs.
HeadlerFunc is returning response headers based on the received request headers.
NetworkStatus represents the network availability status.
ReachabilityStatus represents the node reachability status.