Versions in this module Expand all Collapse all v0 v0.2.0 Oct 16, 2020 v0.1.0 Oct 16, 2020 Changes in this version + type Config struct + Bootnodes []*enode.Node + Clock mclock.Clock + Log log.Logger + NetRestrict *netutil.Netlist + OnSeen func(n *enode.Node, at time.Time, liveness uint) + PrivateKey *ecdsa.PrivateKey + Revalidator func(node2 *enode.Node) (uint64, error) + Unhandled chan<- ReadPacket + ValidSchemes enr.IdentityScheme + type ReadPacket struct + Addr *net.UDPAddr + Data []byte + type Table struct + func (tab *Table) ReadRandomNodes(buf []*enode.Node) (n int) + type UDPConn interface + Close func() error + LocalAddr func() net.Addr + ReadFromUDP func(b []byte) (n int, addr *net.UDPAddr, err error) + WriteToUDP func(b []byte, addr *net.UDPAddr) (n int, err error) + type UDPv5 struct + func ListenV5(conn UDPConn, ln *enode.LocalNode, cfg Config) (*UDPv5, error) + func (t *UDPv5) AddRecentNode(n *enode.Node, at time.Time, liveness uint) + func (t *UDPv5) AllNodes() []*enode.Node + func (t *UDPv5) Close() + func (t *UDPv5) LocalNode() *enode.LocalNode + func (t *UDPv5) Lookup(target enode.ID) []*enode.Node + func (t *UDPv5) Ping(n *enode.Node) error + func (t *UDPv5) PingSeq(n *enode.Node) (uint64, error) + func (t *UDPv5) RandomNodes() enode.Iterator + func (t *UDPv5) RequestENR(n *enode.Node) (*enode.Node, error) + func (t *UDPv5) Resolve(n *enode.Node) *enode.Node + func (t *UDPv5) SeeNode(n *enode.Node, at time.Time, liveness uint) + func (t *UDPv5) Self() *enode.Node