Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + type Client struct + func NewClient(px proxy.Proxy, h host.Host, ps peer.Peerstore, local peer.ID) (*Client, error) + func (c *Client) Bootstrap(ctx context.Context) error + func (c *Client) FindPeer(ctx context.Context, id peer.ID) (peer.PeerInfo, error) + func (c *Client) FindProvidersAsync(ctx context.Context, k u.Key, max int) <-chan peer.PeerInfo + func (c *Client) GetValue(ctx context.Context, k u.Key) ([]byte, error) + func (c *Client) Ping(ctx context.Context, id peer.ID) (time.Duration, error) + func (c *Client) Provide(ctx context.Context, k u.Key) error + func (c *Client) PutValue(ctx context.Context, k u.Key, v []byte) error + type Server struct + func NewServer(ds datastore.ThreadSafeDatastore, ps peer.Peerstore, local peer.ID) (*Server, error) + func (_ *Server) Bootstrap(ctx context.Context) error + func (s *Server) HandleRequest(ctx context.Context, p peer.ID, req *dhtpb.Message) *dhtpb.Message