Documentation ¶
Index ¶
- type DHT
- func (p *DHT) AddNode(node utils.NodeInfo)
- func (p *DHT) Close() error
- func (p *DHT) Discover(addr net.Addr) error
- func (p *DHT) FindNearestNode(findid utils.NodeID) []utils.NodeInfo
- func (p *DHT) GetNodeInfo(id utils.NodeID) *utils.NodeInfo
- func (p *DHT) KnownNodes() []utils.NodeInfo
- func (p *DHT) LoadValue(key string) *string
- func (p *DHT) ProcessPacket(b []byte, addr net.Addr)
- func (p *DHT) StoreValue(key string, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHT ¶
type DHT struct {
// contains filtered or unexported fields
}
func (*DHT) KnownNodes ¶
func (*DHT) StoreValue ¶
Click to show internal directories.
Click to hide internal directories.