Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestDownloadSpeed ¶
func TestUploadSpeed ¶
Types ¶
type ByDistance ¶
type ByDistance struct {
TestServerList
}
ByDistance : For sorting Servers.
func (ByDistance) Less ¶
func (b ByDistance) Less(i, j int) bool
Less : compare the distance. For sorting Servers.
type TestServer ¶
type TestServer struct { URL string `xml:"url,attr"` Lat string `xml:"lat,attr"` Lon string `xml:"lon,attr"` Name string `xml:"name,attr"` Country string `xml:"country,attr"` Sponsor string `xml:"sponsor,attr"` ID string `xml:"id,attr"` URL2 string `xml:"url2,attr"` Host string `xml:"host,attr"` Distance float64 }
TestServer information
type TestServerList ¶
type TestServerList struct {
Servers []TestServer `xml:"servers>server"`
}
TestServerList : List of TestServer
func (TestServerList) Len ¶
func (s TestServerList) Len() int
func (TestServerList) Swap ¶
func (s TestServerList) Swap(i, j int)
Perp : swap i-th and j-th. For sorting Servers.
Click to show internal directories.
Click to hide internal directories.