Documentation
¶
Overview ¶
Package bitswap implements the IPFS exchange interface with the BitSwap bilateral exchange protocol.
Index ¶
- type BlockReceivedNotifierdeprecated
- type Client
- type Option
- func ProviderSearchDelay(newProvSearchDelay time.Duration) Option
- func RebroadcastDelay(newRebroadcastDelay delay.D) Option
- func SetSimulateDontHavesOnTimeout(send bool) Optiondeprecated
- func WithBlockReceivedNotifier(brn BlockReceivedNotifier) Optiondeprecated
- func WithTracer(tap tracer.Tracer) Option
- type Stat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockReceivedNotifier
deprecated
type BlockReceivedNotifier = libipfs.BlockReceivedNotifier
Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.BlockReceivedNotifier instead
type Client ¶
Client instances implement the bitswap protocol. Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.Client instead
func New ¶
func New(parent context.Context, network bsnet.BitSwapNetwork, bstore blockstore.Blockstore, options ...Option) *Client
New initializes a Bitswap client that runs until client.Close is called. Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.New instead
type Option ¶
Option defines the functional option type that can be used to configure bitswap instances Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.Option instead
func ProviderSearchDelay ¶
ProviderSearchDelay overwrites the global provider search delay Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.ProviderSearchDelay instead
func RebroadcastDelay ¶
RebroadcastDelay overwrites the global provider rebroadcast delay Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.RebroadcastDelay instead
func SetSimulateDontHavesOnTimeout
deprecated
func WithBlockReceivedNotifier
deprecated
func WithBlockReceivedNotifier(brn BlockReceivedNotifier) Option
Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.WithBlockReceivedNotifier instead
func WithTracer ¶
Configures the Client to use given tracer. This provides methods to access all messages sent and received by the Client. This interface can be used to implement various statistics (this is original intent). Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.WithTracer instead