Documentation ¶
Index ¶
- type Client
- func (c *Client) BaseURL() string
- func (c *Client) Close()
- func (c *Client) FindMiner(ctx context.Context) (*address.Address, error)
- func (c *Client) GetDealStatus(ctx context.Context, CID *cid.Cid) (storagemarket.StorageDealStatus, uint64, error)
- func (c *Client) GetRetrieveStatus(ctx context.Context, dealID retrievalmarket.DealID) (retrievalmarket.DealStatus, error)
- func (c *Client) SaveFile(ctx context.Context, CID *cid.Cid, dealID retrievalmarket.DealID) error
- func (c *Client) StartDeal(ctx context.Context, CID *cid.Cid, dataSizeBytes uint64) (*cid.Cid, string, error)
- func (c *Client) StartRetrieve(ctx context.Context, CID *cid.Cid) (retrievalmarket.DealID, error)
- type Config
- type DealStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDealStatus ¶
func (c *Client) GetDealStatus(ctx context.Context, CID *cid.Cid) (storagemarket.StorageDealStatus, uint64, error)
func (*Client) GetRetrieveStatus ¶
func (c *Client) GetRetrieveStatus(ctx context.Context, dealID retrievalmarket.DealID) (retrievalmarket.DealStatus, error)
func (*Client) StartRetrieve ¶
type DealStatus ¶
type DealStatus = storagemarket.StorageDealStatus
Click to show internal directories.
Click to hide internal directories.