Versions in this module Expand all Collapse all v6 v6.4.0 May 18, 2020 Changes in this version + const DhtProtoID + func ConvertPeers(peers []string) map[string]*peer.AddrInfo + type Discovery struct + func InitDhtDiscovery(host host.Host, peersInfo []peer.AddrInfo, chainCfg *types.Chain33Config, ...) *Discovery + func (d *Discovery) CloseFindLANPeers() + func (d *Discovery) FindLANPeers(host host.Host, serviceTag string) (<-chan peer.AddrInfo, error) + func (d *Discovery) FindLocalPeer(pid peer.ID) peer.AddrInfo + func (d *Discovery) FindLocalPeers(pids []peer.ID) []peer.AddrInfo + func (d *Discovery) FindNearestPeers(pid peer.ID, count int) []peer.ID + func (d *Discovery) FindPeers(RendezvousString string) (<-chan peer.AddrInfo, error) + func (d *Discovery) FindPeersConnectedToPeer(pid peer.ID) (<-chan *peer.AddrInfo, error) + func (d *Discovery) FindSpecialPeer(pid peer.ID) (*peer.AddrInfo, error) + func (d *Discovery) Remove(pid peer.ID) + func (d *Discovery) RoutingTableSize() int + func (d *Discovery) RoutingTale() []peer.ID + func (d *Discovery) UPdate(pid peer.ID) error Other modules containing this package github.com/33cn/chain33