Documentation ¶
Overview ¶
package bitswap implements the IPFS Exchange interface with the BitSwap bilateral exchange protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, p peer.Peer, network bsnet.BitSwapNetwork, routing bsnet.Routing, d ds.ThreadSafeDatastore, nice bool) exchange.Interface
New initializes a BitSwap instance that communicates over the provided BitSwapNetwork. This function registers the returned instance as the network delegate. Runs until context is cancelled
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
internal/pb
Package bitswap_message_pb is a generated protocol buffer package.
|
Package bitswap_message_pb is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.