comcast

package
v0.0.0-...-091f842 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ComcastServerSelect = "https://speedtestprod.mw.comcast.net/api/selectservers/%s"
View Source
const ComcastTestplanUrl = "https://speedtestprod.mw.comcast.net/api/testplans"

Variables

This section is empty.

Functions

func ConvComcasttoDB

func ConvComcasttoDB(cs []ComcastServer, cfg *common.Config) []spdb.SpeedServer

func ImportComcastServerfromFile

func ImportComcastServerfromFile(cfg *common.Config, filename string) []spdb.SpeedServer

func LoadComcastServer

func LoadComcastServer(cfg *common.Config) []spdb.SpeedServer

func LoadServers

func LoadServers(site string, c_server chan ComcastServer)

func ResultCollector

func ResultCollector(c_server chan ComcastServer)

Types

type ComcastConfig

type ComcastConfig struct {
	CreateFile string
	OpenFile   string
	Retry      int
	PrintList  string
}

type ComcastServer

type ComcastServer struct {
	IPv4 string `json:"IPv4Address"`
	IPv6 string `json:"IPv6Address"`
	Name string `json:"Sitename"`
	Host string `json:"Fqdn"`
	Id   int    `json:"ServerId"`
}

type ComcastTestplan

type ComcastTestplan struct {
	ServerLocation []string `json:"serverLocation"`
}

func LoadTestPlan

func LoadTestPlan() *ComcastTestplan

Jump to

Keyboard shortcuts

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