package
0.0.0-20230703214630-6d3db958c73d
Repository: https://github.com/onflow/go-bitswap.git
Documentation: pkg.go.dev

# Functions

ContainsBlock returns true if a block is found n a list of blocks.
ContainsKey returns true if a key is found n a list of CIDs.
ContainsPeer returns true if a peer is found n a list of peers.
GenerateBlocksOfSize generates a series of blocks of the given byte size.
GenerateCids produces n content identifiers.
GenerateMessageEntries makes fake bitswap message entries.
GeneratePeers creates n peer ids.
GenerateSessionID make a unit session identifier.
IndexOf returns the index of a given cid in an array of blocks.
MatchKeysIgnoreOrder returns true if the lists of CIDs match (even if they're in a different order).
MatchPeersIgnoreOrder returns true if the lists of peers match (even if they're in a different order).