task

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TcpConnectTimeout = time.Second * 1
	// MaxRoutine 最先线程数
	MaxRoutine = 1000
)
View Source
const (
	BufferSize = 1024
)

Variables

View Source
var (
	OutRegexp = regexp.MustCompile(`[A-Z]{3}`)
)

Functions

func TestDownloadSpeed

func TestDownloadSpeed(ipSet handler.PingDelaySet, globalConfig *entity.TestOptions) (speedTestSet handler.DownloadSpeedSet, speedSet handler.DownloadSpeedSet)

Types

type Ping

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

func NewPing

func NewPing(testConfig *entity.TestOptions) *Ping

func (*Ping) Run

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

Jump to

Keyboard shortcuts

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