Documentation ¶
Index ¶
- Variables
- type BitSwapNetwork
- type ConnectionListenerdeprecated
- type MessageSender
- type MessageSenderOptsdeprecated
- type NetOptdeprecated
- type Pinger
- type Receiver
- type Routing
- type Settingsdeprecated
- type Stats
Constants ¶
This section is empty.
Variables ¶
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
Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.NetOpt instead
func SupportedProtocols
deprecated
added in
v0.2.0
type Pinger ¶ added in v0.2.0
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 ¶
Receiver is an interface that can receive messages from the BitSwapNetwork. Deprecated: use github.com/ipfs/go-libipfs/bitswap/network.Receiver instead
type 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