Documentation ¶
Index ¶
- type 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()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
func NewDiscovery ¶
func (*Discovery) AddrReqHandle ¶
func (*Discovery) FindNodeHandle ¶
func (self *Discovery) FindNodeHandle(ctx *p2p.Context, freq *types.FindNodeReq)
func (*Discovery) FindNodeResponseHandle ¶
func (self *Discovery) FindNodeResponseHandle(ctx *p2p.Context, fresp *types.FindNodeResp)
Click to show internal directories.
Click to hide internal directories.