Versions in this module Expand all Collapse all v0 v0.1.10 Dec 16, 2019 Changes in this version + var ProtocolBitswap protocol.ID = "/ipfs/bitswap/1.1.0" + var ProtocolBitswapNoVers protocol.ID = "/ipfs/bitswap" + var ProtocolBitswapOne protocol.ID = "/ipfs/bitswap/1.0.0" + type BitSwapNetwork interface + ConnectTo func(context.Context, peer.ID) error + ConnectionManager func() connmgr.ConnManager + NewMessageSender func(context.Context, peer.ID) (MessageSender, error) + SendMessage func(context.Context, peer.ID, bsmsg.BitSwapMessage) error + SetDelegate func(Receiver) + Stats func() Stats + func NewFromIpfsHost(host host.Host, r routing.ContentRouting, opts ...NetOpt) BitSwapNetwork + type MessageSender interface + Close func() error + Reset func() error + SendMsg func(context.Context, bsmsg.BitSwapMessage) error + type NetOpt func(*Settings) + func Prefix(prefix protocol.ID) NetOpt + type Receiver interface + PeerConnected func(peer.ID) + PeerDisconnected func(peer.ID) + ReceiveError func(error) + ReceiveMessage func(ctx context.Context, sender peer.ID, incoming bsmsg.BitSwapMessage) + type Routing interface + FindProvidersAsync func(context.Context, cid.Cid, int) <-chan peer.ID + Provide func(context.Context, cid.Cid) error + type Settings struct + ProtocolPrefix protocol.ID + type Stats struct + MessagesRecvd uint64 + MessagesSent uint64 v0.1.10-1 Dec 16, 2019