speedtester

package
v0.0.0-...-a0c44de Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpeedTester

type SpeedTester struct {
	NoTls bool
	// contains filtered or unexported fields
}

func NewSpeedTester

func NewSpeedTester(tester TesterI, opts ...SpeedTesterOption) *SpeedTester

type SpeedTesterOption

type SpeedTesterOption = func(c *SpeedTester)

func WithCustomAmount

func WithCustomAmount(dw uint32, up uint32) SpeedTesterOption

func WithCustomTester

func WithCustomTester(host string, port uint16, noSSL bool, dpath string, upath string) SpeedTesterOption

type TesterI

type TesterI interface {
	MakeDownloadHTTPRequest(noTLS bool, amount uint32) *http.Request
	MakeUploadHTTPRequest(noTLS bool, amount uint32) *http.Request
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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