Documentation ¶ Index ¶ type AddrList func New(maxItems int, blocklist *blocklist.Blocklist, listenPort int, clientIP *net.IP) *AddrList func (d *AddrList) Len() int func (d *AddrList) LenSource(s peer.Source) int func (d *AddrList) Pop() (*net.TCPAddr, peer.Source) func (d *AddrList) Push(addrs []*net.TCPAddr, source peer.Source) func (d *AddrList) Reset() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AddrList ¶ type AddrList struct { // contains filtered or unexported fields } AddrList contains peer addresses that are ready to be connected. func New ¶ func New(maxItems int, blocklist *blocklist.Blocklist, listenPort int, clientIP *net.IP) *AddrList func (*AddrList) Len ¶ func (d *AddrList) Len() int func (*AddrList) LenSource ¶ added in v0.2.0 func (d *AddrList) LenSource(s peer.Source) int func (*AddrList) Pop ¶ func (d *AddrList) Pop() (*net.TCPAddr, peer.Source) func (*AddrList) Push ¶ func (d *AddrList) Push(addrs []*net.TCPAddr, source peer.Source) func (*AddrList) Reset ¶ func (d *AddrList) Reset() Source Files ¶ View all Source files addrlist.go peeraddr.go Click to show internal directories. Click to hide internal directories.