Documentation ¶
Index ¶
- Variables
- func DefaultCFRanges() []netip.Prefix
- func DefaultDialerFunc(ctx context.Context, network, addr string) (net.Conn, error)
- func DefaultHTTPClientFunc(rawDialer TDialerFunc, tlsDialer TDialerFunc, quicDialer TQuicDialerFunc, ...) *http.Client
- 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 TlsVersionToString(ver uint16) string
- type IPInfQueue
- type IPInfo
- type IPing
- type IPingResult
- type ScannerOptions
- type TDialerFunc
- type THTTPClientFunc
- type TIPQueueChangeCallback
- type TQuicDialerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HTTPPing = 1 << 1 TLSPing = 1 << 2 TCPPing = 1 << 3 QUICPing = 1 << 4 WARPPing = 1 << 5 )
Functions ¶
func DefaultCFRanges ¶
func DefaultDialerFunc ¶
func DefaultHTTPClientFunc ¶
func DefaultHTTPClientFunc(rawDialer TDialerFunc, tlsDialer TDialerFunc, quicDialer TQuicDialerFunc, targetAddr ...string) *http.Client
func DefaultQuicDialerFunc ¶
func DefaultTLSDialerFunc ¶
DefaultTLSDialerFunc is a custom TLS dialer function
func TlsVersionToString ¶
Types ¶
type IPInfQueue ¶
type IPInfQueue struct {
// contains filtered or unexported fields
}
func (*IPInfQueue) Dequeue ¶
func (q *IPInfQueue) Dequeue() IPInfo
Dequeue removes and returns the item with the lowest RTT.
func (*IPInfQueue) Enqueue ¶
func (q *IPInfQueue) Enqueue(item IPInfo)
Enqueue adds an item and then sorts the queue.
func (*IPInfQueue) Size ¶
func (q *IPInfQueue) Size() int
Size returns the number of items in the queue.
type IPing ¶
type IPing interface { Ping() IPingResult PingContext(context.Context) IPingResult }
type ScannerOptions ¶
type ScannerOptions struct { UseIPv4 bool UseIPv6 bool CidrList []netip.Prefix // CIDR ranges to scan SelectedOps int Logger *slog.Logger InsecureSkipVerify bool RawDialerFunc TDialerFunc TLSDialerFunc TDialerFunc QuicDialerFunc TQuicDialerFunc HttpClientFunc THTTPClientFunc UseHTTP3 bool UseHTTP2 bool DisableCompression bool HTTPPath string Referrer string UserAgent string Hostname string WarpPrivateKey string WarpPeerPublicKey string Port uint16 IPQueueSize int IPQueueTTL time.Duration MaxDesirableRTT time.Duration IPQueueChangeCallback TIPQueueChangeCallback ConnectionTimeout time.Duration HandshakeTimeout time.Duration TlsVersion uint16 }
var FinalOptions *ScannerOptions
type TDialerFunc ¶
type THTTPClientFunc ¶
type THTTPClientFunc func(rawDialer TDialerFunc, tlsDialer TDialerFunc, quicDialer TQuicDialerFunc, targetAddr ...string) *http.Client
type TIPQueueChangeCallback ¶
type TIPQueueChangeCallback func(ips []IPInfo)
Click to show internal directories.
Click to hide internal directories.