Documentation ¶
Index ¶
- type Client
- func (c *Client) AddRecord(ctx context.Context, id thread.ID, lid peer.ID, rec core.Record, ...) error
- func (c *Client) AddReplicator(ctx context.Context, id thread.ID, paddr ma.Multiaddr, ...) (pid peer.ID, err error)
- func (c *Client) AddThread(ctx context.Context, addr ma.Multiaddr, opts ...core.NewThreadOption) (info thread.Info, err error)
- func (c *Client) Close() error
- func (c *Client) CreateRecord(ctx context.Context, id thread.ID, body format.Node, opts ...core.ThreadOption) (core.ThreadRecord, error)
- func (c *Client) CreateThread(ctx context.Context, id thread.ID, opts ...core.NewThreadOption) (info thread.Info, err error)
- func (c *Client) DeleteThread(ctx context.Context, id thread.ID, opts ...core.ThreadOption) error
- func (c *Client) GetHostID(ctx context.Context) (peer.ID, error)
- func (c *Client) GetRecord(ctx context.Context, id thread.ID, rid cid.Cid, opts ...core.ThreadOption) (core.Record, error)
- func (c *Client) GetThread(ctx context.Context, id thread.ID, opts ...core.ThreadOption) (info thread.Info, err error)
- func (c *Client) GetToken(ctx context.Context, identity thread.Identity) (tok thread.Token, err error)
- func (c *Client) PullThread(ctx context.Context, id thread.ID, opts ...core.ThreadOption) error
- func (c *Client) Subscribe(ctx context.Context, opts ...core.SubOption) (<-chan core.ThreadRecord, 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) AddReplicator ¶
func (*Client) CreateRecord ¶
func (*Client) CreateThread ¶
func (*Client) DeleteThread ¶
func (*Client) PullThread ¶
Click to show internal directories.
Click to hide internal directories.