network

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CapFile string
)

Functions

func CaptureProcess

func CaptureProcess()

func SpeedtestProcess

func SpeedtestProcess()

Wrapper functions for synchronization

Types

type NdtConnectionInfo

type NdtConnectionInfo struct {
	Value struct {
		ConnectionInfo struct {
			Server string `json:"Server"`
		} `json:"ConnectionInfo"`
	} `json:"Value"`
}

type NdtDataInfo

type NdtDataInfo struct {
	Value struct {
		AppInfo struct {
			NumBytes int64 `json:"NumBytes"`
		} `json:"AppInfo"`
	} `json:"Value"`
}

type NdtFinalInfo

type NdtFinalInfo struct {
	ServerFQDN string `json:"ServerFQDN"`
	ServerIP   net.IP `json:"ServerIP"`
	Download   struct {
		Throughput     Value `json:"Throughput"`
		Latency        Value `json:"Latency"`
		Retransmission Value `json:"Retransmission"`
	} `json:"Download"`
	Upload struct {
		Throughput Value `json:"Throughput"`
	} `json:"Upload"`
}

type OoklaResultInfo

type OoklaResultInfo struct {
	Ping struct {
		Jitter  float64 `json:"jitter"`
		Latency float64 `json:"latency"`
	} `json:"ping"`
	Download struct {
		Bandwidth int   `json:"bandwidth"`
		Bytes     int64 `json:"bytes"`
	} `json:"download"`
	Upload struct {
		Bandwidth int   `json:"bandwidth"`
		Bytes     int64 `json:"bytes"`
	} `json:"upload"`
	Server struct {
		ID   int    `json:"id"`
		Host string `json:"host"`
		Name string `json:"name"`
	} `json:"server"`
	PktLoss float64 `json:"packetLoss"`
}

type OoklaStartInfo

type OoklaStartInfo struct {
	Server struct {
		IP net.IP `json:"ip"`
	} `json:"server"`
}

type Value

type Value struct {
	Value float64 `json:"Value"`
}

Jump to

Keyboard shortcuts

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