package
0.2.15-rc.3
Repository: https://github.com/ethfsx/go-bitswap.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
FromPBReader generates a new Bitswap message from a gogo-protobuf reader.
FromNet generates a new BitswapMessage from incoming data on an io.Reader.
New returns a new, empty bitswap message.

# Variables

No description provided by the author

# Structs

BlockPresence represents a HAVE / DONT_HAVE for a given Cid.
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).

# Interfaces

BitSwapMessage is the basic interface for interacting building, encoding, and decoding messages sent on the BitSwap protocol.
Exportable is an interface for structures than can be encoded in a bitswap protobuf.