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

# Functions

Creates a new instance of the default score ledger.
NewEngine creates a new block sending engine for the given block store.
Creates a new instance of the default score ledger with testing parameters.
WithBlockstoreWorkerCount sets the number of worker threads used for blockstore operations in the decision engine.
WithMaxOutstandingBytesPerPeer describes approximately how much work we are will to have outstanding to a peer at any given time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithTaskWorkerCount sets the number of worker threads used inside the engine.

# Structs

DefaultScoreLedger is used by Engine as the default ScoreLedger.
Engine manages sending requested blocks to peers.
Envelope contains a message for a Peer.
Receipt is a summary of the ledger for a given peer collecting various pieces of aggregated data for external reporting purposes.
TaskInfo represents the details of a request from a peer.

# Interfaces

PeerTagger covers the methods on the connection manager used by the decision engine to tag peers.
ScoreLedger is an external ledger dealing with peer scores.

# Type aliases

No description provided by the author
PeerBlockRequestFilter is used to accept / deny requests for a CID coming from a PeerID It should return true if the request should be fullfilled.
Assigns a specific score to a peer.
TaskComparator is used for task prioritization.