client

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) Close

func (c *Client) Close() error

Close closes gracefully the 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.

Jump to

Keyboard shortcuts

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