Documentation ¶
Index ¶
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 (*AddrList) LenSource ¶ added in v0.2.0
func (d *AddrList) LenSource(s peersource.Source) int
LenSource returns the number of addresses for a single source.
func (*AddrList) Pop ¶
func (d *AddrList) Pop() (*net.TCPAddr, peersource.Source)
Pop returns the next address. The returned address is removed from the list.
Click to show internal directories.
Click to hide internal directories.