Documentation ¶
Index ¶
- type Client
- func (c *Client) Bootstrap(ctx context.Context) error
- func (c *Client) FindPeer(ctx context.Context, id peer.ID) (pstore.PeerInfo, error)
- func (c *Client) FindProvidersAsync(ctx context.Context, k *cid.Cid, max int) <-chan pstore.PeerInfo
- func (c *Client) GetValue(ctx context.Context, k string) ([]byte, error)
- func (c *Client) GetValues(ctx context.Context, k string, _ int) ([]routing.RecvdVal, error)
- func (c *Client) Ping(ctx context.Context, id peer.ID) (time.Duration, error)
- func (c *Client) Provide(ctx context.Context, k *cid.Cid, brd bool) error
- func (c *Client) PutValue(ctx context.Context, k string, v []byte) error
- type Server
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
}
func (*Client) FindProvidersAsync ¶
Click to show internal directories.
Click to hide internal directories.