Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerResponse ¶
type ServerResponse struct { URL string `json:"url"` Lat string `json:"lat"` Lon string `json:"lon"` Distance int `json:"distance"` Name string `json:"name"` Country string `json:"country"` Cc string `json:"cc"` Sponsor string `json:"sponsor"` ID string `json:"id"` Preferred int `json:"preferred"` HTTPSFunctional int `json:"https_functional"` Host string `json:"host"` }
ServerResponse is the response object from Speedtest API.
func SearchByName ¶
func SearchByName(query string) ([]ServerResponse, error)
SearchByName uses Speedtest API to retrieve a list of servers relative to the query, for a maximum of 10 elements.
Click to show internal directories.
Click to hide internal directories.