task

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	URL     = defaultURL
	Timeout = defaultTimeout
	Disable = defaultDisableDownload

	TestCount = defaultTestNum
	MinSpeed  = defaultMinSpeed
)
View Source
var (
	Httping           bool
	HttpingStatusCode int
	HttpingCFColo     string
	HttpingCFColomap  *sync.Map
	OutRegexp         = regexp.MustCompile(`[A-Z]{3}`)
)
View Source
var (
	// TestAll test all ip
	TestAll = false
	// IPFile is the filename of IP Rangs
	IPFile = defaultInputFile
	IPText string
)
View Source
var (
	Routines      = defaultRoutines
	TCPPort   int = defaultPort
	PingTimes int = defaultPingTimes
)

Functions

func InitRandSeed

func InitRandSeed()

func MapColoMap

func MapColoMap() *sync.Map

func TestDownloadSpeed

func TestDownloadSpeed(ipSet utils.PingDelaySet, progress utils.Progress) (speedSet utils.DownloadSpeedSet)

Types

type IPRanges

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

type Ping

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

func NewPing

func NewPing(progress utils.Progress) *Ping

func (*Ping) Run

func (p *Ping) Run() utils.PingDelaySet

Jump to

Keyboard shortcuts

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