Package nordVpn
(v1.8.1)
[repository]
Index
Variables
var Transport = http.Transport{
Proxy: func(req *http.Request) (*url.URL, error) {
log.Println(req.Method, req.URL)
return http.ProxyFromEnvironment(req)
},
}
Functions
func FormatProxy(username, password, hostname string) string
Types
type Server
type Server struct {
Hostname string
Status string
Technologies []struct {
Identifier string
}
Locations []struct {
Country struct {
City struct {
DnsName string `json:"dns_name"`
}
Code string
}
}
}
type ServerLoad
type ServerLoad struct {
Count int
Country string
City string
Hostname string
}
type ServerLoads
type ServerLoads []*ServerLoad
Methods
func (s ServerLoads) Country(code string) (string, bool)
func (s ServerLoads) Marshal() ([]byte, error)
func (s *ServerLoads) Unmarshal(data []byte) error