Documentation ¶
Index ¶
- type Getter
- func (sg *Getter) GetEDS(ctx context.Context, header *header.ExtendedHeader) (*rsmt2d.ExtendedDataSquare, error)
- func (sg *Getter) GetShare(context.Context, *header.ExtendedHeader, int, int) (libshare.Share, 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) 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.