Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCFRanges ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewScannerEngine ¶
func NewScannerEngine(opts *ScannerOptions) *Engine
func (*Engine) GetAvailableIPs ¶
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 IPQueue ¶
type IPQueue struct {
// contains filtered or unexported fields
}
func NewIPQueue ¶
func NewIPQueue(opts *ScannerOptions) *IPQueue
func (*IPQueue) AvailableIPs ¶
type IpGenerator ¶
type IpGenerator struct {
// contains filtered or unexported fields
}
func NewIterator ¶
func NewIterator(opts *ScannerOptions) *IpGenerator
type LCG ¶
type LCG struct {
// contains filtered or unexported fields
}
LCG represents a linear congruential generator with full period.
type ScannerOptions ¶
type ScannerOptions struct { UseIPv4 bool UseIPv6 bool CidrList []netip.Prefix // CIDR ranges to scan // SelectedOps int Logger *slog.Logger // UseHTTP3 bool // UseHTTP2 bool // DisableCompression bool // HTTPPath string // Referrer string // UserAgent string // Hostname string // WarpPrivateKey string // WarpPeerPublicKey string // WarpPresharedKey string // Port uint16 IPQueueSize int IPQueueTTL time.Duration MaxDesirableRTT time.Duration // IPQueueChangeCallback TIPQueueChangeCallback ConnectionTimeout time.Duration HandshakeTimeout time.Duration PingFunc func(netip.Addr) (IPInfo, error) ConcurrentPings int }
Click to show internal directories.
Click to hide internal directories.