client

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 6 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) Addrs

func (c *Client) Addrs(ctx context.Context) (*ffsRpc.AddrsResponse, error)

func (*Client) Balance

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

func (*Client) Close

func (c *Client) Close() error

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

func (*Client) Connectedness

func (c *Client) Connectedness(ctx context.Context, peerID string) (*netRpc.ConnectednessResponse, error)

func (*Client) FindPeer

func (c *Client) FindPeer(ctx context.Context, peerID string) (*netRpc.FindPeerResponse, error)

func (*Client) Health

func (c *Client) Health(ctx context.Context) (*healthRpc.CheckResponse, error)

func (*Client) Info

func (c *Client) Info(ctx context.Context) (*ffsRpc.InfoResponse, error)

func (*Client) ListRetrievalDealRecords

func (c *Client) ListRetrievalDealRecords(ctx context.Context, config *ffsRpc.ListDealRecordsConfig) (*ffsRpc.ListRetrievalDealRecordsResponse, error)

func (*Client) ListStorageDealRecords

func (c *Client) ListStorageDealRecords(ctx context.Context, config *ffsRpc.ListDealRecordsConfig) (*ffsRpc.ListStorageDealRecordsResponse, error)

func (*Client) NewAddr

func (c *Client) NewAddr(ctx context.Context, name, addrType string, makeDefault bool) (*ffsRpc.NewAddrResponse, error)

func (*Client) Peers

func (c *Client) Peers(ctx context.Context) (*netRpc.PeersResponse, error)

func (*Client) Show

func (c *Client) Show(ctx context.Context, cid string) (*ffsRpc.ShowResponse, error)

func (*Client) ShowAll

func (c *Client) ShowAll(ctx context.Context) (*ffsRpc.ShowAllResponse, error)

Jump to

Keyboard shortcuts

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