Documentation
¶
Index ¶
- type Optiondeprecated
- func EngineBlockstoreWorkerCount(count int) Option
- func EngineTaskWorkerCount(count int) Option
- func HasBlockBufferSize(count int) Option
- func MaxOutstandingBytesPerPeer(count int) Option
- func ProvideEnabled(enabled bool) Option
- func SetSendDontHaves(send bool) Option
- func TaskWorkerCount(count int) Optiondeprecated
- func WithPeerBlockRequestFilter(pbrf PeerBlockRequestFilter) Optiondeprecated
- func WithScoreLedger(scoreLedger ScoreLedger) Option
- func WithTargetMessageSize(tms int) Optiondeprecated
- func WithTaskComparator(comparator TaskComparator) Option
- func WithTracer(tap tracer.Tracer) Optiondeprecated
- type PeerBlockRequestFilterdeprecated
- type Receiptdeprecated
- type ScoreLedgerdeprecated
- type ScorePeerFuncdeprecated
- type Serverdeprecated
- type Statdeprecated
- type TaskComparatordeprecated
- type TaskInfodeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option
deprecated
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.Option instead
func EngineBlockstoreWorkerCount ¶
EngineBlockstoreWorkerCount sets the number of worker threads used for blockstore operations in the decision engine Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.EngineBlockstoreWorkerCount instead
func EngineTaskWorkerCount ¶
EngineTaskWorkerCount sets the number of worker threads used inside the engine Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.EngineTaskWorkerCount instead
func HasBlockBufferSize ¶
HasBlockBufferSize configure how big the new blocks buffer should be. Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.HasBlockBufferSize instead
func MaxOutstandingBytesPerPeer ¶
MaxOutstandingBytesPerPeer describes approximately how much work we are will to have outstanding to a peer at any given time. Setting it to 0 will disable any limiting. Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.MaxOutstandingBytesPerPeer instead
func ProvideEnabled ¶
ProvideEnabled is an option for enabling/disabling provide announcements Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.ProvideEnabled instead
func SetSendDontHaves ¶
SetSendDontHaves indicates what to do when the engine receives a want-block for a block that is not in the blockstore. Either - Send a DONT_HAVE message - Simply don't respond This option is only used for testing. Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.SetSendDontHaves instead
func TaskWorkerCount
deprecated
func WithPeerBlockRequestFilter
deprecated
func WithPeerBlockRequestFilter(pbrf PeerBlockRequestFilter) Option
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.WithPeerBlockRequestFilter instead
func WithScoreLedger ¶
func WithScoreLedger(scoreLedger ScoreLedger) Option
Configures the engine to use the given score decision logic. Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.WithScoreLedger instead
func WithTargetMessageSize
deprecated
func WithTaskComparator ¶
func WithTaskComparator(comparator TaskComparator) Option
WithTaskComparator configures custom task prioritization logic. Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.WithTaskComparator instead
func WithTracer
deprecated
type PeerBlockRequestFilter
deprecated
type PeerBlockRequestFilter = libipfs.PeerBlockRequestFilter
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.PeerBlockRequestFilter instead
type ScoreLedger
deprecated
type ScoreLedger = libipfs.ScoreLedger
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.ScoreLedger instead
type ScorePeerFunc
deprecated
type ScorePeerFunc = libipfs.ScorePeerFunc
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.ScorePeerFunc instead
type Server
deprecated
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.Server instead
func New
deprecated
func New(ctx context.Context, network bsnet.BitSwapNetwork, bstore blockstore.Blockstore, options ...Option) *Server
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.New instead
type TaskComparator
deprecated
type TaskComparator = libipfs.TaskComparator
Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.TaskComparator instead