Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Create(ctx context.Context, dataCid cid.Cid, origin string) (broker.StorageRequest, error)
- func (c *Client) CreatePrepared(ctx context.Context, dataCid cid.Cid, pc broker.PreparedCAR, ...) (broker.StorageRequest, error)
- func (c *Client) GetStorageRequestInfo(ctx context.Context, id broker.StorageRequestID) (broker.StorageRequestInfo, error)
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
}
Client is a brokerd client.
func New ¶
func New(brokerAPIAddr string, opts ...grpc.DialOption) (*Client, error)
New returns a new *Client.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, dataCid cid.Cid, origin string) (broker.StorageRequest, error)
Create creates a new StorageRequest.
func (*Client) CreatePrepared ¶
func (c *Client) CreatePrepared( ctx context.Context, dataCid cid.Cid, pc broker.PreparedCAR, meta broker.BatchMetadata, rw *broker.RemoteWallet) (broker.StorageRequest, error)
CreatePrepared creates a storage request for prepared data.
func (*Client) GetStorageRequestInfo ¶
func (c *Client) GetStorageRequestInfo( ctx context.Context, id broker.StorageRequestID) (broker.StorageRequestInfo, error)
GetStorageRequestInfo gets a storage request information by id.
Click to show internal directories.
Click to hide internal directories.