Documentation
¶
Index ¶
- Variables
- type DHT
- func (dht *DHT) FindNode(id *peer.ID) error
- func (dht *DHT) GetSloppyValues(key string, count int) ([]*DHTValue, error)
- func (dht *DHT) GetValue(key string) *DHTValue
- func (dht *DHT) PingNode(id *peer.ID, timeout time.Duration) error
- func (dht *DHT) SetSloppyValue(key string, value *DHTValue) error
- func (dht *DHT) SetValue(key string, value *DHTValue) error
- type DHTConfig
- type DHTObject
- type DHTRepublish
- type DHTValue
Constants ¶
This section is empty.
Variables ¶
View Source
var NotAvailable = errors.New("Not Available")
View Source
var NotFound = errors.New("Not Found")
View Source
var TimeoutExceeded = errors.New("Timeout Exceeded")
Functions ¶
This section is empty.
Types ¶
type DHT ¶
type DHT struct { //Network Network net.Conn // DHT Configuration Settings Config DHTConfig //Republish Republish *DHTRepublish }
TODO. SEE https://github.com/jbenet/node-ipfs/blob/master/submodules/ipfs-dht/index.js
func (*DHT) GetSloppyValues ¶
GetSloppyValues finds (at least) a number of values for given key
type DHTRepublish ¶
TODO: not call this republish
Click to show internal directories.
Click to hide internal directories.