batched

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchProvidingSystem deprecated

type BatchProvidingSystem struct {
	// contains filtered or unexported fields
}

Deprecated: use github.com/ipfs/boxo/provider/batched.BatchProvidingSystem

func New deprecated

func New(provider provideMany, q *queue.Queue, opts ...Option) (*BatchProvidingSystem, error)

Deprecated: use github.com/ipfs/boxo/provider/batched.New

func (*BatchProvidingSystem) Close

func (s *BatchProvidingSystem) Close() error

func (*BatchProvidingSystem) Provide

func (s *BatchProvidingSystem) Provide(cid cid.Cid) error

func (*BatchProvidingSystem) Reprovide

func (s *BatchProvidingSystem) Reprovide(ctx context.Context) error

func (*BatchProvidingSystem) Run

func (s *BatchProvidingSystem) Run()

func (*BatchProvidingSystem) Stat

Stat returns various stats about this provider system

type BatchedProviderStats deprecated

type BatchedProviderStats struct {
	TotalProvides, LastReprovideBatchSize     int
	AvgProvideDuration, LastReprovideDuration time.Duration
}

Deprecated: use github.com/ipfs/boxo/provider/batched.BatchedProviderStats

type Option deprecated

type Option func(system *BatchProvidingSystem) error

Option defines the functional option type that can be used to configure BatchProvidingSystem instances

Deprecated: use github.com/ipfs/boxo/provider/batched.Option

func Datastore deprecated

func Datastore(batching datastore.Batching) Option

Deprecated: use github.com/ipfs/boxo/provider/batched.Datastore

func KeyProvider deprecated

func KeyProvider(fn simple.KeyChanFunc) Option

Deprecated: use github.com/ipfs/boxo/provider/batched.KeyProvider

func ReproviderInterval deprecated

func ReproviderInterval(duration time.Duration) Option

Deprecated: use github.com/ipfs/boxo/provider/batched.ReproviderInterval

Jump to

Keyboard shortcuts

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