ipscanner

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPInfo

type IPInfo = statute.IPInfo

type IPScanner

type IPScanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(options ...Option) *IPScanner

func (*IPScanner) GetAvailableIPs

func (i *IPScanner) GetAvailableIPs() []statute.IPInfo

func (*IPScanner) Run

func (i *IPScanner) Run(ctx context.Context)

type Option

type Option func(*IPScanner)

func WithCidrList

func WithCidrList(cidrList []netip.Prefix) Option

func WithIPQueueSize

func WithIPQueueSize(size int) Option

func WithIPQueueTTL

func WithIPQueueTTL(ttl time.Duration) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

func WithMaxDesirableRTT

func WithMaxDesirableRTT(threshold time.Duration) Option

func WithUseIPv4

func WithUseIPv4(useIPv4 bool) Option

func WithUseIPv6

func WithUseIPv6(useIPv6 bool) Option

func WithWarpPeerPublicKey

func WithWarpPeerPublicKey(peerPublicKey string) Option

func WithWarpPreSharedKey

func WithWarpPreSharedKey(presharedKey string) Option

func WithWarpPrivateKey

func WithWarpPrivateKey(privateKey string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL