shrex_getter

package
v0.17.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 20 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 pruner.AvailabilityWindow,
) *Getter

func (*Getter) GetEDS

func (*Getter) GetShare

func (*Getter) GetSharesByNamespace

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

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