Documentation ¶
Index ¶
- type Getter
- func (sg *Getter) GetEDS(ctx context.Context, header *header.ExtendedHeader) (*rsmt2d.ExtendedDataSquare, error)
- func (sg *Getter) GetSamples(context.Context, *header.ExtendedHeader, []shwap.SampleIndex) ([]shwap.Sample, error)
- func (sg *Getter) GetSharesByNamespace(ctx context.Context, header *header.ExtendedHeader, ...) (shwap.NamespaceData, error)
- func (sg *Getter) Start(ctx context.Context) error
- func (sg *Getter) Stop(ctx context.Context) error
- func (sg *Getter) WithMetrics() error
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 (*Getter) GetEDS ¶
func (sg *Getter) GetEDS(ctx context.Context, header *header.ExtendedHeader) (*rsmt2d.ExtendedDataSquare, error)
func (*Getter) GetSamples ¶ added in v0.20.4
func (sg *Getter) GetSamples(context.Context, *header.ExtendedHeader, []shwap.SampleIndex) ([]shwap.Sample, error)
func (*Getter) GetSharesByNamespace ¶
func (sg *Getter) GetSharesByNamespace( ctx context.Context, header *header.ExtendedHeader, namespace libshare.Namespace, ) (shwap.NamespaceData, error)
func (*Getter) WithMetrics ¶
Click to show internal directories.
Click to hide internal directories.