beater

package
v0.0.0-...-afefd14 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of speedbeat.

Types

type Download

type Download struct {
	Bandwidth int
	Bytes     int
	Elapsed   int
}

type Interface

type Interface struct {
	InternalIp string
	Name       string
	MACAddr    string
	IsVpn      bool
	ExternalIp string
}

type Ping

type Ping struct {
	Jitter  float64
	Latency float64
}

type Result

type Result struct {
	ID  string
	URL string
}

type Server

type Server struct {
	ID       int
	Name     string
	Location string
	Country  string
	Host     string
	Port     int
	IP       string
}

type Speedresult

type Speedresult struct {
	Type       string
	Timestamp  string
	Ping       Ping
	Download   Download
	Upload     Upload
	PacketLoss float64
	ISP        string
	Interface  Interface
	Server     Server
	Result     Result
}

speedtest result

type Upload

type Upload struct {
	Bandwidth int
	Bytes     int
	Elapsed   int
}

Jump to

Keyboard shortcuts

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