Versions in this module Expand all Collapse all v1 v1.15.0 Nov 22, 2021 Changes in this version + var AlphaValue = 3 + var KValue = 20 + var PoolSize = 6 + type DHT struct + AutoRefresh bool + RtRefreshPeriod time.Duration + func NewDHT(id common.PeerId) *DHT + func (dht *DHT) BetterPeers(id common.PeerId, count int) []common.PeerIDAddressPair + func (dht *DHT) Contains(peer common.PeerId) bool + func (dht *DHT) Remove(peer common.PeerId) + func (dht *DHT) RouteTable() *kb.RouteTable + func (dht *DHT) Update(peer common.PeerId, addr string) bool