network

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: 4 Imported by: 52

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProtocolBitswapNoVers is equivalent to the legacy bitswap protocol
	// Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.BitSwapNetwork instead
	ProtocolBitswapNoVers = libipfs.ProtocolBitswapNoVers
	// ProtocolBitswapOneZero is the prefix for the legacy bitswap protocol
	// Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.ProtocolBitswapOneZero instead
	ProtocolBitswapOneZero = libipfs.ProtocolBitswapOneZero
	// ProtocolBitswapOneOne is the the prefix for version 1.1.0
	// Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.ProtocolBitswapOneOne instead
	ProtocolBitswapOneOne = libipfs.ProtocolBitswapOneOne
	// ProtocolBitswap is the current version of the bitswap protocol: 1.2.0
	// Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.ProtocolBitswap instead
	ProtocolBitswap = libipfs.ProtocolBitswap
)

Functions

This section is empty.

Types

type BitSwapNetwork

type BitSwapNetwork = libipfs.BitSwapNetwork

BitSwapNetwork provides network connectivity for BitSwap sessions. Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.BitSwapNetwork instead

func NewFromIpfsHost

func NewFromIpfsHost(host host.Host, r routing.ContentRouting, opts ...NetOpt) BitSwapNetwork

NewFromIpfsHost returns a BitSwapNetwork supported by underlying IPFS host. Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.NewFromIpfsHost instead

type ConnectionListener deprecated added in v0.2.11

type ConnectionListener = libipfs.ConnectionListener

Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.ConnectionListener instead

type MessageSender

type MessageSender = libipfs.MessageSender

MessageSender is an interface for sending a series of messages over the bitswap network Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.MessageSender instead

type MessageSenderOpts deprecated added in v0.2.11

type MessageSenderOpts = libipfs.MessageSenderOpts

Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.MessageSenderOpts instead

type NetOpt deprecated added in v0.1.7

type NetOpt = libipfs.NetOpt

Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.NetOpt instead

func Prefix deprecated added in v0.1.7

func Prefix(prefix protocol.ID) NetOpt

Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.Prefix instead

func SupportedProtocols deprecated added in v0.2.0

func SupportedProtocols(protos []protocol.ID) NetOpt

Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.SupportedProtocols instead

type Pinger added in v0.2.0

type Pinger = libipfs.Pinger

Pinger is an interface to ping a peer and get the average latency of all pings Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.Pinger instead

type Receiver

type Receiver = libipfs.Receiver

Receiver is an interface that can receive messages from the BitSwapNetwork. Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.Receiver instead

type Routing

type Routing = libipfs.Routing

Routing is an interface to providing and finding providers on a bitswap network. Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.Routing instead

type Settings deprecated added in v0.1.7

type Settings = libipfs.Settings

Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.Settings instead

type Stats added in v0.0.6

type Stats = libipfs.Stats

Stats is a container for statistics about the bitswap network the numbers inside are specific to bitswap, and not any other protocols using the same underlying network. Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.Stats instead

Jump to

Keyboard shortcuts

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