Versions in this module Expand all Collapse all v1 v1.0.1 Jun 11, 2019 Changes in this version + func DisableLog() + func GroupKey(na *wire.NetAddress) string + func IsIPv4(na *wire.NetAddress) bool + func IsLocal(na *wire.NetAddress) bool + func IsOnionCatTor(na *wire.NetAddress) bool + func IsRFC1918(na *wire.NetAddress) bool + func IsRFC2544(na *wire.NetAddress) bool + func IsRFC3849(na *wire.NetAddress) bool + func IsRFC3927(na *wire.NetAddress) bool + func IsRFC3964(na *wire.NetAddress) bool + func IsRFC4193(na *wire.NetAddress) bool + func IsRFC4380(na *wire.NetAddress) bool + func IsRFC4843(na *wire.NetAddress) bool + func IsRFC4862(na *wire.NetAddress) bool + func IsRFC5737(na *wire.NetAddress) bool + func IsRFC6052(na *wire.NetAddress) bool + func IsRFC6145(na *wire.NetAddress) bool + func IsRFC6598(na *wire.NetAddress) bool + func IsRoutable(na *wire.NetAddress) bool + func IsValid(na *wire.NetAddress) bool + func NetAddressKey(na *wire.NetAddress) string + func UseLogger(logger bsvlog.Logger) + type AddrManager struct + func New(dataDir string, lookupFunc func(string) ([]net.IP, error)) *AddrManager + func (a *AddrManager) AddAddress(addr, srcAddr *wire.NetAddress) + func (a *AddrManager) AddAddressByIP(addrIP string) error + func (a *AddrManager) AddAddresses(addrs []*wire.NetAddress, srcAddr *wire.NetAddress) + func (a *AddrManager) AddLocalAddress(na *wire.NetAddress, priority AddressPriority) error + func (a *AddrManager) AddressCache() []*wire.NetAddress + func (a *AddrManager) Attempt(addr *wire.NetAddress) + func (a *AddrManager) Connected(addr *wire.NetAddress) + func (a *AddrManager) DeserializeNetAddress(addr string) (*wire.NetAddress, error) + func (a *AddrManager) GetAddress() *KnownAddress + func (a *AddrManager) GetBestLocalAddress(remoteAddr *wire.NetAddress) *wire.NetAddress + func (a *AddrManager) Good(addr *wire.NetAddress) + func (a *AddrManager) HostToNetAddress(host string, port uint16, services wire.ServiceFlag) (*wire.NetAddress, error) + func (a *AddrManager) NeedMoreAddresses() bool + func (a *AddrManager) NumAddresses() int + func (a *AddrManager) SetServices(addr *wire.NetAddress, services wire.ServiceFlag) + func (a *AddrManager) Start() + func (a *AddrManager) Stop() error + type AddressPriority int + const BoundPrio + const HTTPPrio + const InterfacePrio + const ManualPrio + const UpnpPrio + type KnownAddress struct + func (ka *KnownAddress) LastAttempt() time.Time + func (ka *KnownAddress) NetAddress() *wire.NetAddress