Documentation ¶
Index ¶
- Variables
- type API
- func (a *API) ClientCalcCommP(ctx context.Context, inpath string) (*api.CommPRet, error)
- func (a *API) ClientDataTransferUpdates(ctx context.Context) (<-chan api.DataTransferChannel, error)
- func (a *API) ClientDealSize(ctx context.Context, root cid.Cid) (api.DataSize, error)
- func (a *API) ClientFindData(ctx context.Context, root cid.Cid, piece *cid.Cid) ([]api.QueryOffer, error)
- func (a *API) ClientGenCar(ctx context.Context, ref api.FileRef, outputPath string) error
- func (a *API) ClientGetDealInfo(ctx context.Context, d cid.Cid) (*api.DealInfo, error)
- func (a *API) ClientGetDealUpdates(ctx context.Context) (<-chan api.DealInfo, error)
- func (a *API) ClientHasLocal(ctx context.Context, root cid.Cid) (bool, error)
- func (a *API) ClientImport(ctx context.Context, ref api.FileRef) (*api.ImportRes, error)
- func (a *API) ClientImportLocal(ctx context.Context, f io.Reader) (cid.Cid, error)
- func (a *API) ClientListDataTransfers(ctx context.Context) ([]api.DataTransferChannel, error)
- func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error)
- func (a *API) ClientListImports(ctx context.Context) ([]api.Import, error)
- func (a *API) ClientMinerQueryOffer(ctx context.Context, miner address.Address, root cid.Cid, piece *cid.Cid) (api.QueryOffer, error)
- func (a *API) ClientQueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.SignedStorageAsk, error)
- func (a *API) ClientRemoveImport(ctx context.Context, importID multistore.StoreID) error
- func (a *API) ClientRetrieve(ctx context.Context, order api.RetrievalOrder, ref *api.FileRef) error
- func (a *API) ClientRetrieveWithEvents(ctx context.Context, order api.RetrievalOrder, ref *api.FileRef) (<-chan marketevents.RetrievalEvent, error)
- func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams) (*cid.Cid, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31)
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { fx.In full.ChainAPI full.StateAPI full.WalletAPI paych.PaychAPI SMDealClient storagemarket.StorageClient RetDiscovery rm.PeerResolver Retrieval rm.RetrievalClient Chain *store.ChainStore Imports dtypes.ClientImportMgr CombinedBstore dtypes.ClientBlockstore // TODO: try to remove RetrievalStoreMgr dtypes.ClientRetrievalStoreManager DataTransfer dtypes.ClientDataTransfer Host host.Host }
func (*API) ClientCalcCommP ¶ added in v0.3.0
func (*API) ClientDataTransferUpdates ¶ added in v0.5.0
func (*API) ClientDealSize ¶ added in v0.5.0
func (*API) ClientFindData ¶
func (*API) ClientGenCar ¶ added in v0.3.0
func (*API) ClientGetDealInfo ¶
func (*API) ClientGetDealUpdates ¶ added in v0.5.5
func (*API) ClientHasLocal ¶
func (*API) ClientImport ¶
func (*API) ClientImportLocal ¶
func (*API) ClientListDataTransfers ¶ added in v0.5.0
func (*API) ClientListDeals ¶
func (*API) ClientListImports ¶
func (*API) ClientMinerQueryOffer ¶ added in v0.4.0
func (*API) ClientQueryAsk ¶
func (a *API) ClientQueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.SignedStorageAsk, error)
func (*API) ClientRemoveImport ¶ added in v0.5.0
func (*API) ClientRetrieve ¶
func (*API) ClientRetrieveWithEvents ¶ added in v0.5.0
func (a *API) ClientRetrieveWithEvents(ctx context.Context, order api.RetrievalOrder, ref *api.FileRef) (<-chan marketevents.RetrievalEvent, error)
func (*API) ClientStartDeal ¶
Click to show internal directories.
Click to hide internal directories.