scanner

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFOption

type CFOption = func(c *CFScanner)

func WithCustomAmount

func WithCustomAmount(downloadBytes uint32, uploadBytes uint32) CFOption

func WithDifferentEndpoint

func WithDifferentEndpoint(host string, port uint16, noSSL bool, dpath string, upath string) CFOption

WithDifferentEndpoint dpath: download path - upath: upload path

func WithDifferentTests

func WithDifferentTests(DownloadTest bool, UploadTest bool) CFOption

type CFScanner

type CFScanner struct {
	DoDownloadSpeedTest bool
	DoUploadSpeedTest   bool

	// Engine
	Threads        uint16
	DownloadAmount uint32
	UploadAmount   uint32
	// contains filtered or unexported fields
}

func NewCFScanner

func NewCFScanner(rangeIPs []string, threadCount uint16, opts ...CFOption) (*CFScanner, error)

func (*CFScanner) StartScanner

func (c *CFScanner) StartScanner()

Jump to

Keyboard shortcuts

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