Versions in this module Expand all Collapse all v0 v0.1.1 Jan 19, 2019 v0.1.0 Aug 16, 2018 Changes in this version + const Halflife + const Lifetime + var ErrDialNil = errors.New("Config: Dial cannot be nil") + var ErrTorInvalidAddressResponse = errors.New("invalid address response") + var ErrTorInvalidProxyResponse = errors.New("invalid proxy response") + var ErrTorUnrecognizedAuthMethod = errors.New("invalid proxy authentication method") + func DisableLog() + func SeedFromDNS(chainParams *chaincfg.Params, reqServices wire.ServiceFlag, ...) + func TorLookupIP(host, proxy string) ([]net.IP, error) + func UseLogger(logger btclog.Logger) + type Config struct + Dial func(net.Addr) (net.Conn, error) + GetNewAddress func() (net.Addr, error) + Listeners []net.Listener + OnAccept func(net.Conn) + OnConnection func(*ConnReq, net.Conn) + OnDisconnection func(*ConnReq) + RetryDuration time.Duration + TargetOutbound uint32 + type ConnManager struct + func New(cfg *Config) (*ConnManager, error) + func (cm *ConnManager) Connect(c *ConnReq) + func (cm *ConnManager) Disconnect(id uint64) + func (cm *ConnManager) NewConnReq() + func (cm *ConnManager) Remove(id uint64) + func (cm *ConnManager) Start() + func (cm *ConnManager) Stop() + func (cm *ConnManager) Wait() + type ConnReq struct + Addr net.Addr + Permanent bool + func (c *ConnReq) ID() uint64 + func (c *ConnReq) State() ConnState + func (c *ConnReq) String() string + type ConnState uint8 + const ConnCanceled + const ConnDisconnected + const ConnEstablished + const ConnFailing + const ConnPending + type DynamicBanScore struct + func (s *DynamicBanScore) Increase(persistent, transient uint32) uint32 + func (s *DynamicBanScore) Int() uint32 + func (s *DynamicBanScore) Reset() + func (s *DynamicBanScore) String() string + type LookupFunc func(string) ([]net.IP, error) + type OnSeed func(addrs []*wire.NetAddress)