Documentation ¶
Overview ¶
Package retriever wraps functionality for fetching data from filecoin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointFinder ¶
type EndpointFinder interface {
FindHTTPEndpoints(ctx context.Context, sps []string) ([]peer.AddrInfo, error)
}
EndpointFinder finds http endpoints for set of SPs
type Retriever ¶
type Retriever struct {
// contains filtered or unexported fields
}
Retriever wraps Lassie and HTTP endpoint lookup to returns a byte stream for a cid at the root of a unixfs tree, from a list of Filecoin providers
func NewRetriever ¶
func NewRetriever(lassie lassietypes.Fetcher, endpointFinder EndpointFinder) *Retriever
NewRetriever returns a new retriever instance
Click to show internal directories.
Click to hide internal directories.