Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2025 Changes in this version + func RandomWarpPort() int type IPInfo + Port int v1.0.0 Jul 15, 2025 Changes in this version + var DefaultCFRanges = []string + var HTTPPing = 1 << 1 + var QUICPing = 1 << 4 + var TCPPing = 1 << 3 + var TLSPing = 1 << 2 + var WARPPing = 1 << 5 + func CloneIP(ip netip.Addr) netip.Addr + func DefaultDialerFunc(ctx context.Context, network, addr string) (net.Conn, error) + func DefaultHTTPClientFunc(rawDialer TDialerFunc, tlsDialer TDialerFunc, quicDialer TQuicDialerFunc, ...) *http.Client + func DefaultIPQueueChangeCallback(ips []IPInfo) + func DefaultQuicDialerFunc(ctx context.Context, addr string, _ *tls.Config, _ *quic.Config) (quic.EarlyConnection, error) + func DefaultTLSDialerFunc(ctx context.Context, network, addr string) (net.Conn, error) + func IsIPv4(ip netip.Addr) bool + func IsIPv6(ip netip.Addr) bool + func TlsVersionToString(ver uint16) string + type DefaultLogger struct + func (l DefaultLogger) Debug(s string, v ...interface{}) + func (l DefaultLogger) Error(s string, v ...interface{}) + type IPInfQueue struct + func (q *IPInfQueue) Dequeue() IPInfo + func (q *IPInfQueue) Enqueue(item IPInfo) + func (q *IPInfQueue) Size() int + type IPInfo struct + CreatedAt time.Time + IP netip.Addr + RTT int + type IPing interface + Ping func() IPingResult + PingContext func(context.Context) IPingResult + type IPingResult interface + Error func() error + Result func() int + type Logger interface + Debug func(s string, v ...interface{}) + Error func(s string, v ...interface{}) + type ScannerOptions struct + CidrList []string + ConnectionTimeout time.Duration + DisableCompression bool + HTTPPath string + HandshakeTimeout time.Duration + Hostname string + HttpClientFunc THTTPClientFunc + IPQueueChangeCallback TIPQueueChangeCallback + IPQueueSize int + IPQueueTTL time.Duration + InsecureSkipVerify bool + Logger Logger + MaxDesirableRTT int + Port uint16 + QuicDialerFunc TQuicDialerFunc + RawDialerFunc TDialerFunc + Referrer string + SelectedOps int + TLSDialerFunc TDialerFunc + TlsVersion uint16 + UseHTTP2 bool + UseHTTP3 bool + UseIPv4 bool + UseIPv6 bool + UserAgent string + WarpPeerPublicKey string + WarpPresharedKey string + WarpPrivateKey string + var FinalOptions *ScannerOptions + type TDialerFunc func(ctx context.Context, network, addr string) (net.Conn, error) + type THTTPClientFunc func(rawDialer TDialerFunc, tlsDialer TDialerFunc, quicDialer TQuicDialerFunc, ...) *http.Client + type TIPQueueChangeCallback func(ips []IPInfo) + type TQuicDialerFunc func(ctx context.Context, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error)