Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var MaxEntrySize = libipfs.MaxEntrySize
Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.MaxEntrySize instead
Functions ¶
func BlockPresenceSize
deprecated
added in
v0.2.0
Types ¶
type BitSwapMessage ¶
type BitSwapMessage = libipfs.BitSwapMessage
BitSwapMessage is the basic interface for interacting building, encoding, and decoding messages sent on the BitSwap protocol. Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.BitSwapMessage instead
func FromMsgReader ¶ added in v0.1.5
func FromMsgReader(r msgio.Reader) (BitSwapMessage, error)
FromPBReader generates a new Bitswap message from a gogo-protobuf reader Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.FromMsgReader instead
func FromNet ¶
func FromNet(r io.Reader) (BitSwapMessage, error)
FromNet generates a new BitswapMessage from incoming data on an io.Reader. Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.FromNet instead
func New ¶
func New(full bool) BitSwapMessage
New returns a new, empty bitswap message Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.New instead
type BlockPresence ¶ added in v0.2.0
type BlockPresence = libipfs.BlockPresence
BlockPresence represents a HAVE / DONT_HAVE for a given Cid Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.BlockPresence instead
type Entry ¶
Entry is a wantlist entry in a Bitswap message, with flags indicating - whether message is a cancel - whether requester wants a DONT_HAVE message - whether requester wants a HAVE message (instead of the block) Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.Entry instead
type Exportable ¶
type Exportable = libipfs.Exportable
Exportable is an interface for structures than can be encoded in a bitswap protobuf. Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.Exportable instead