latency

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessIP

func ProcessIP(ip string, configManager *config.Manager, xrayManager *xray.Manager, latencyTester *Tester, retries int, semaphore chan struct{}, wg *sync.WaitGroup, successIPs *[]IPResult, mu *sync.Mutex)

Types

type IPResult

type IPResult struct {
	IP      string
	Latency time.Duration
}

type Tester

type Tester struct {
	URL     string
	Socks5  string
	Verbose bool
}

func NewTester

func NewTester(url, socks5 string, verbose bool) *Tester

func (*Tester) MeasureLatency

func (lt *Tester) MeasureLatency() (time.Duration, error)

Jump to

Keyboard shortcuts

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