types

package
v0.0.0-...-e6e7638 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dishy

type Dishy struct {
	ID             string     `json:"id"`
	CreatedAt      time.Time  `json:"createdAt"`
	LastMetricAt   *time.Time `json:"lastMetricAt,omitempty"`
	LastGeocheckAt *time.Time `json:"-"`
	Name           string     `json:"name"`
}

type DishySpeed

type DishySpeed struct {
	DownloadSpeed float64 `json:"downloadSpeed"`
	UploadSpeed   float64 `json:"uploadSpeed"`
}

type DishyStat

type DishyStat struct {
	SNR                   int     `json:"snr"`
	DownlinkThroughputBps float64 `json:"downloadThroughputBps"`
	UplinkThroughputBps   float64 `json:"uplinkThroughputBps"`
	PopPingLatencyMs      float64 `json:"popPingLatencyMs"`
	PopPingDropRate       float64 `json:"popPingDropRate"`
	PercentObstructed     float64 `json:"percentObstructed"`
	ObstructedSeconds     float64 `json:"obstructedSeconds"`
}

type DishyWithStats

type DishyWithStats struct {
	Dishy
	LatestStats  *DishyStat  `json:"latestStats"`
	LatestSpeeds *DishySpeed `json:"latestSpeeds"`
}

type GeoCheck

type GeoCheck struct {
	IPAddress string `json:"ip"`
	Continent string `json:"continent"`
	Country   string `json:"country"`
	Region    string `json:"region"`

	City string `json:"city"`

	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`

	Org string `json:"org"`

	Timezone GeoCheckTimezone `json:"timezone"`
}

https://ipwhois.io/documentation

type GeoCheckTimezone

type GeoCheckTimezone struct {
	ID     string `json:"id"`
	Abbr   string `json:"abbr"`
	UTC    string `json:"utc"`
	Offset int    `json:"offset"`
}

Jump to

Keyboard shortcuts

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