server

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option deprecated

type Option = libipfs.Option

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.Option instead

func EngineBlockstoreWorkerCount

func EngineBlockstoreWorkerCount(count int) Option

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

func EngineTaskWorkerCount(count int) Option

EngineTaskWorkerCount sets the number of worker threads used inside the engine Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.EngineTaskWorkerCount instead

func HasBlockBufferSize

func HasBlockBufferSize(count int) Option

HasBlockBufferSize configure how big the new blocks buffer should be. Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.HasBlockBufferSize instead

func MaxOutstandingBytesPerPeer

func MaxOutstandingBytesPerPeer(count int) Option

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

func ProvideEnabled(enabled bool) Option

ProvideEnabled is an option for enabling/disabling provide announcements Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.ProvideEnabled instead

func SetSendDontHaves

func SetSendDontHaves(send bool) Option

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 TaskWorkerCount(count int) Option

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.TaskWorkerCount instead

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 WithTargetMessageSize(tms int) Option

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.WithTargetMessageSize instead

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

func WithTracer(tap tracer.Tracer) Option

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.WithTracer instead

type PeerBlockRequestFilter deprecated

type PeerBlockRequestFilter = libipfs.PeerBlockRequestFilter

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.PeerBlockRequestFilter instead

type Receipt deprecated

type Receipt = libipfs.Receipt

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.Receipt 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

type Server = libipfs.Server

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 Stat deprecated

type Stat = libipfs.Stat

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.Stat instead

type TaskComparator deprecated

type TaskComparator = libipfs.TaskComparator

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.TaskComparator instead

type TaskInfo deprecated

type TaskInfo = libipfs.TaskInfo

Deprecated: use github.com/ipfs/go-libipfs/bitswap/server.TaskInfo instead

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL