Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpfsRouting ¶
type IpfsRouting interface { // PutValue adds value corresponding to given Key. PutValue(key u.Key, value []byte) error // GetValue searches for the value corresponding to given Key. GetValue(key u.Key, timeout time.Duration) ([]byte, error) // Announce that this node can provide value for given key Provide(key u.Key) error // FindProviders searches for peers who can provide the value for given key. FindProviders(key u.Key, timeout time.Duration) (*peer.Peer, error) // FindPeer searches for a peer with given ID. FindPeer(id peer.ID, timeout time.Duration) (*peer.Peer, error) }
IpfsRouting is the routing module interface It is implemented by things like DHTs, etc.
Click to show internal directories.
Click to hide internal directories.