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 key.Key, max int) <-chan pstore.PeerInfo
- func (c *Client) GetValue(ctx context.Context, k key.Key) ([]byte, error)
- func (c *Client) GetValues(ctx context.Context, k key.Key, _ 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 key.Key) error
- func (c *Client) PutValue(ctx context.Context, k key.Key, 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.