Documentation
¶
Index ¶
Constants ¶
View Source
const MLABSITES = "https://siteinfo.mlab-oti.measurementlab.net/v1/sites/locations.json"
View Source
const NDTUrlTemplate = "https://mlab-ns.appspot.com/%s?policy=all"
choose from: ndt, ndt_ssl, ndt7
Variables ¶
This section is empty.
Functions ¶
func ImportNdtServerfromFile ¶
func ImportNdtServerfromFile(cfg *common.Config, filename string) []spdb.SpeedServer
Types ¶
type NDTMeta ¶
type NDTMeta struct {
Site string `json:"site"`
Lat float64 `json:"latitude"`
Lon float64 `json:"longitude"`
}
func LoadSiteMeta ¶
func LoadSiteMeta() []NDTMeta
type NDTServer ¶
type NDTServer struct {
IPs []string `json:"ip"`
IPv4 string `json:"IPv4"`
IPv6 string `json:"IPv6"`
City string `json:"city"`
Url string `json:"url"`
Host string `json:"fqdn"`
Site string `json:"site"`
Country string `json:"country"`
Version []string `json:"version"`
Lat float64 `json:"latitude"`
Lon float64 `json:"longitude"`
}
"https://storage.googleapis.com/operator-mlab-oti/metadata/v0/current/mlab-site-stats.json"
func LoadNDTServers ¶
func MergeNDTservers ¶
Click to show internal directories.
Click to hide internal directories.