client

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0, MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

func (*API) ClientFindData

func (a *API) ClientFindData(ctx context.Context, root cid.Cid) ([]api.QueryOffer, error)

func (*API) ClientGetDealInfo

func (a *API) ClientGetDealInfo(ctx context.Context, d cid.Cid) (*api.DealInfo, error)

func (*API) ClientHasLocal

func (a *API) ClientHasLocal(ctx context.Context, root cid.Cid) (bool, error)

func (*API) ClientImport

func (a *API) ClientImport(ctx context.Context, path string) (cid.Cid, error)

func (*API) ClientImportLocal

func (a *API) ClientImportLocal(ctx context.Context, f io.Reader) (cid.Cid, error)

func (*API) ClientListDeals

func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error)

func (*API) ClientListImports

func (a *API) ClientListImports(ctx context.Context) ([]api.Import, error)

func (*API) ClientQueryAsk

func (a *API) ClientQueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*types.SignedStorageAsk, error)

func (*API) ClientRetrieve

func (a *API) ClientRetrieve(ctx context.Context, order api.RetrievalOrder, path string) error

func (*API) ClientStartDeal

func (a *API) ClientStartDeal(ctx context.Context, data cid.Cid, addr address.Address, miner address.Address, epochPrice types.BigInt, blocksDuration uint64) (*cid.Cid, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL