Versions in this module Expand all Collapse all v2 v2.0.1 Jul 5, 2020 Changes in this version + type Discovery struct + func NewDiscovery(net p2p.P2P, maskLst []string, maskFilter p2p.AddressFilter, ...) *Discovery + func (self *Discovery) AddrHandle(ctx *p2p.Context, msg *types.Addr) + func (self *Discovery) AddrReqHandle(ctx *p2p.Context) + func (self *Discovery) FindNodeHandle(ctx *p2p.Context, freq *types.FindNodeReq) + func (self *Discovery) FindNodeResponseHandle(ctx *p2p.Context, fresp *types.FindNodeResp) + func (self *Discovery) OnAddPeer(info *peer.PeerInfo) + func (self *Discovery) OnDelPeer(info *peer.PeerInfo) + func (self *Discovery) Start() + func (self *Discovery) Stop()