Documentation ¶
Index ¶
- type Client
- func (c *Client) Addresses(ctx context.Context) (*userPb.AddressesResponse, error)
- func (c *Client) Balance(ctx context.Context, addr string) (*userPb.BalanceResponse, error)
- func (c *Client) CidInfo(ctx context.Context, cids ...string) (*userPb.CidInfoResponse, error)
- func (c *Client) Close() error
- func (c *Client) RetrievalDealRecords(ctx context.Context, config *userPb.DealRecordsConfig) (*userPb.RetrievalDealRecordsResponse, error)
- func (c *Client) SignMessage(ctx context.Context, address string, message []byte) (*userPb.SignMessageResponse, error)
- func (c *Client) StorageDealRecords(ctx context.Context, config *userPb.DealRecordsConfig) (*userPb.StorageDealRecordsResponse, error)
- func (c *Client) VerifyMessage(ctx context.Context, address string, message, signature []byte) (*userPb.VerifyMessageResponse, 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) RetrievalDealRecords ¶
func (c *Client) RetrievalDealRecords(ctx context.Context, config *userPb.DealRecordsConfig) (*userPb.RetrievalDealRecordsResponse, error)
func (*Client) SignMessage ¶ added in v2.2.1
func (*Client) StorageDealRecords ¶
func (c *Client) StorageDealRecords(ctx context.Context, config *userPb.DealRecordsConfig) (*userPb.StorageDealRecordsResponse, error)
func (*Client) VerifyMessage ¶ added in v2.2.1
Click to show internal directories.
Click to hide internal directories.