package
Version:
v0.3.3-buildfails
Opens a new window with list of versions in this module.
Published: Apr 28, 2015
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
type Client
-
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
TODO take in datastore/cache
Server handles routing queries using a database backend
NewServer creates a new Supernode routing Server
HandleLocalRequest implements the proxy.RequestHandler interface. This is
where requests are received from the outside world.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.