shrex_getter

package
v0.20.4-quic-debug-v1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

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

Getter is a share.Getter that uses the shrex/eds and shrex/nd protocol to retrieve shares.

func NewGetter

func NewGetter(
	edsClient *shrexeds.Client,
	ndClient *shrexnd.Client,
	fullPeerManager *peers.Manager,
	archivalManager *peers.Manager,
	availWindow time.Duration,
) *Getter

func (*Getter) GetEDS

func (*Getter) GetNamespaceData

func (sg *Getter) GetNamespaceData(
	ctx context.Context,
	header *header.ExtendedHeader,
	namespace libshare.Namespace,
) (shwap.NamespaceData, error)

func (*Getter) GetSamples added in v0.20.4

func (*Getter) Start

func (sg *Getter) Start(ctx context.Context) error

func (*Getter) Stop

func (sg *Getter) Stop(ctx context.Context) error

func (*Getter) WithMetrics

func (sg *Getter) WithMetrics() error

Jump to

Keyboard shortcuts

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