scanner

package
v0.0.0-...-5d53e58 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Running bool
	MaxProc = runtime.NumCPU() * 2 // Max CPU + Thread * 2
)

Running Possible worker state.

Functions

func Start

func Start(C config.Configuration, Worker config.Worker, ipList []string, threadsCount int)

func WriteCSV

func WriteCSV(file string, result []interface{})

Types

type CSV

type CSV struct {
	IP                  string
	DownloadMeanJitter  float64
	UploadMeanJitter    float64
	MeanDownloadSpeed   float64
	MeanUploadSpeed     float64
	MeanDownloadLatency float64
	MeanUploadLatency   float64
	// contains filtered or unexported fields
}

func (CSV) Output

func (c CSV) Output()

func (CSV) Write

func (c CSV) Write()

type JSON

type JSON struct {
	IP                  string  `json:"ip"`
	DownloadMeanJitter  float64 `json:"downloadMeanJitter"`
	UploadMeanJitter    float64 `json:"uploadMeanJitter"`
	MeanDownloadSpeed   float64 `json:"meanDownloadSpeed"`
	MeanUploadSpeed     float64 `json:"meanUploadSpeed"`
	MeanDownloadLatency float64 `json:"meanDownloadLatency"`
	MeanUploadLatency   float64 `json:"meanUploadLatency"`
	// contains filtered or unexported fields
}

func (JSON) Output

func (c JSON) Output()

func (JSON) Write

func (c JSON) Write()

type ScanResult

type ScanResult struct {
	IP       string
	Download struct {
		Speed   []float64
		Latency []int
	}
	Upload struct {
		Speed   []float64
		Latency []int
	}
}

type Writer

type Writer interface {
	Write()
	Output()
}

Jump to

Keyboard shortcuts

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