Versions in this module Expand all Collapse all v0 v0.24.3 Apr 24, 2024 Changes in this version + func DisableLog() + func GroupKey(na *wire.NetAddressV2) 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.NetAddressV2) bool + func IsValid(na *wire.NetAddress) bool + func NetAddressKey(na *wire.NetAddressV2) string + func UseLogger(logger btclog.Logger) + type AddrManager struct + func New(dataDir string, lookupFunc func(string) ([]net.IP, error)) *AddrManager + func (a *AddrManager) AddAddress(addr, srcAddr *wire.NetAddressV2) + func (a *AddrManager) AddAddressByIP(addrIP string) error + func (a *AddrManager) AddAddresses(addrs []*wire.NetAddressV2, srcAddr *wire.NetAddressV2) + func (a *AddrManager) AddLocalAddress(na *wire.NetAddressV2, priority AddressPriority) error + func (a *AddrManager) AddressCache() []*wire.NetAddressV2 + func (a *AddrManager) Attempt(addr *wire.NetAddressV2) + func (a *AddrManager) Connected(addr *wire.NetAddressV2) + func (a *AddrManager) DeserializeNetAddress(addr string, services wire.ServiceFlag) (*wire.NetAddressV2, error) + func (a *AddrManager) GetAddress() *KnownAddress + func (a *AddrManager) GetBestLocalAddress(remoteAddr *wire.NetAddressV2) *wire.NetAddressV2 + func (a *AddrManager) Good(addr *wire.NetAddressV2) + func (a *AddrManager) HostToNetAddress(host string, port uint16, services wire.ServiceFlag) (*wire.NetAddressV2, error) + func (a *AddrManager) NeedMoreAddresses() bool + func (a *AddrManager) NumAddresses() int + func (a *AddrManager) SetServices(addr *wire.NetAddressV2, 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.NetAddressV2 + func (ka *KnownAddress) Services() wire.ServiceFlag