client

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 3 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 provides the client api.

func NewClient

func NewClient(target string, opts ...grpc.DialOption) (*Client, error)

NewClient starts the client.

func (*Client) Addresses added in v2.1.4

func (c *Client) Addresses(ctx context.Context) (*userPb.AddressesResponse, error)

func (*Client) Balance

func (c *Client) Balance(ctx context.Context, addr string) (*userPb.BalanceResponse, error)

func (*Client) CidInfo added in v2.1.4

func (c *Client) CidInfo(ctx context.Context, cids ...string) (*userPb.CidInfoResponse, error)

func (*Client) Close

func (c *Client) Close() error

Close closes the client's grpc connection and cancels any active requests.

func (*Client) RetrievalDealRecords added in v2.1.4

func (c *Client) RetrievalDealRecords(ctx context.Context, config *userPb.DealRecordsConfig) (*userPb.RetrievalDealRecordsResponse, error)

func (*Client) StorageDealRecords added in v2.1.4

func (c *Client) StorageDealRecords(ctx context.Context, config *userPb.DealRecordsConfig) (*userPb.StorageDealRecordsResponse, error)

Jump to

Keyboard shortcuts

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