client

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 7 Imported by: 1

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

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

type Client = libipfs.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

type Option = libipfs.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

func ProviderSearchDelay(newProvSearchDelay time.Duration) Option

ProviderSearchDelay overwrites the global provider search delay Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.ProviderSearchDelay instead

func RebroadcastDelay

func RebroadcastDelay(newRebroadcastDelay delay.D) Option

RebroadcastDelay overwrites the global provider rebroadcast delay Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.RebroadcastDelay instead

func SetSimulateDontHavesOnTimeout deprecated

func SetSimulateDontHavesOnTimeout(send bool) Option

Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.SetSimulateDontHavesOnTimeout instead

func WithBlockReceivedNotifier deprecated

func WithBlockReceivedNotifier(brn BlockReceivedNotifier) Option

Deprecated: use github.com/ipfs/go-libipfs/bitswap/client.WithBlockReceivedNotifier instead

func WithTracer

func WithTracer(tap tracer.Tracer) Option

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

type Stat

type Stat = libipfs.Stat

Stat is a struct that provides various statistics on bitswap operations Deprecated: use github.com/ipfs/go-libipfs/client.Stat instead

Directories

Path Synopsis
Package wantlist implements an object for bitswap that contains the keys that a given peer wants.
Package wantlist implements an object for bitswap that contains the keys that a given peer wants.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL