package
0.0.0-20230703214630-6d3db958c73d
Repository: https://github.com/onflow/go-bitswap.git
Documentation: pkg.go.dev
# Functions
AsyncGetBlocks take a set of block cids, a pubsub channel for incoming blocks, a want function, and a close function, and returns a channel of incoming blocks.
SyncGetBlock takes a block cid and an async function for getting several blocks that returns a channel, and uses that function to return the block syncronously.
# Type aliases
GetBlocksFunc is any function that can take an array of CIDs and return a channel of incoming blocks.
WantFunc is any function that can express a want for set of blocks.