Documentation
¶
Index ¶
- type Client
- func (c *Client) Addrs(ctx context.Context) (*ffsRpc.AddrsResponse, error)
- func (c *Client) Balance(ctx context.Context, addr string) (*walletRpc.BalanceResponse, error)
- func (c *Client) Close() error
- func (c *Client) Connectedness(ctx context.Context, peerID string) (*netRpc.ConnectednessResponse, error)
- func (c *Client) FindPeer(ctx context.Context, peerID string) (*netRpc.FindPeerResponse, error)
- func (c *Client) Health(ctx context.Context) (*healthRpc.CheckResponse, error)
- func (c *Client) Info(ctx context.Context) (*ffsRpc.InfoResponse, error)
- func (c *Client) ListRetrievalDealRecords(ctx context.Context, config *ffsRpc.ListDealRecordsConfig) (*ffsRpc.ListRetrievalDealRecordsResponse, error)
- func (c *Client) ListStorageDealRecords(ctx context.Context, config *ffsRpc.ListDealRecordsConfig) (*ffsRpc.ListStorageDealRecordsResponse, error)
- func (c *Client) Peers(ctx context.Context) (*netRpc.PeersResponse, error)
- func (c *Client) Show(ctx context.Context, cid string) (*ffsRpc.ShowResponse, error)
- func (c *Client) ShowAll(ctx context.Context) (*ffsRpc.ShowAllResponse, 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 provides the client api.
func NewClient ¶
func NewClient(target string, opts ...grpc.DialOption) (*Client, error)
NewClient starts the client.
func (*Client) Connectedness ¶
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)
Click to show internal directories.
Click to hide internal directories.