Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var ProtocolBitswap protocol.ID = "/ipfs/bitswap" + type BitSwapNetwork interface + SendMessage func(context.Context, peer.ID, bsmsg.BitSwapMessage) error + SendRequest func(context.Context, peer.ID, bsmsg.BitSwapMessage) (incoming bsmsg.BitSwapMessage, err error) + SetDelegate func(Receiver) + func NewFromIpfsHost(host host.Host, r routing.IpfsRouting) BitSwapNetwork + 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) (destination peer.ID, outgoing bsmsg.BitSwapMessage) + type Routing interface + FindProvidersAsync func(context.Context, u.Key, int) <-chan peer.ID + Provide func(context.Context, u.Key) error