2020-08-25 19:38:50 -04:00
|
|
|
package models
|
|
|
|
|
|
2020-08-28 08:17:04 -04:00
|
|
|
import (
|
|
|
|
|
"net"
|
|
|
|
|
)
|
|
|
|
|
|
2021-02-26 12:58:58 +00:00
|
|
|
type CyberghostServer struct {
|
2021-09-23 13:28:32 +00:00
|
|
|
Country string `json:"country"`
|
2021-05-08 19:05:11 +00:00
|
|
|
Group string `json:"group"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
2020-10-12 13:57:45 -04:00
|
|
|
}
|
|
|
|
|
|
2021-03-05 23:12:19 -05:00
|
|
|
type FastestvpnServer struct {
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
Country string `json:"country"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-05 22:45:54 -05:00
|
|
|
type HideMyAssServer struct {
|
|
|
|
|
Country string `json:"country"`
|
|
|
|
|
Region string `json:"region"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-20 09:21:48 -07:00
|
|
|
type IpvanishServer struct {
|
|
|
|
|
Country string `json:"country"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-31 00:11:16 +00:00
|
|
|
type IvpnServer struct {
|
2021-08-23 16:01:01 +00:00
|
|
|
VPN string `json:"vpn"`
|
2021-05-31 00:11:16 +00:00
|
|
|
Country string `json:"country"`
|
|
|
|
|
City string `json:"city"`
|
2021-08-22 20:11:56 -07:00
|
|
|
ISP string `json:"isp"`
|
2021-05-31 00:11:16 +00:00
|
|
|
Hostname string `json:"hostname"`
|
2021-08-23 16:01:01 +00:00
|
|
|
WgPubKey string `json:"wgpubkey,omitempty"`
|
2021-05-31 00:11:16 +00:00
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-25 19:38:50 -04:00
|
|
|
type MullvadServer struct {
|
2021-08-22 14:58:39 -07:00
|
|
|
VPN string `json:"vpn"`
|
2021-05-08 19:17:36 +00:00
|
|
|
IPs []net.IP `json:"ips"`
|
|
|
|
|
IPsV6 []net.IP `json:"ipsv6"`
|
|
|
|
|
Country string `json:"country"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
ISP string `json:"isp"`
|
|
|
|
|
Owned bool `json:"owned"`
|
2021-08-22 14:58:39 -07:00
|
|
|
WgPubKey string `json:"wgpubkey,omitempty"`
|
2020-08-25 19:38:50 -04:00
|
|
|
}
|
|
|
|
|
|
2021-02-26 12:58:58 +00:00
|
|
|
type NordvpnServer struct { //nolint:maligned
|
2021-05-08 22:51:59 +00:00
|
|
|
Region string `json:"region"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
Number uint16 `json:"number"`
|
|
|
|
|
IP net.IP `json:"ip"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
2021-02-26 12:58:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type PrivadoServer struct {
|
2021-05-09 00:51:34 +00:00
|
|
|
Country string `json:"country"`
|
|
|
|
|
Region string `json:"region"`
|
|
|
|
|
City string `json:"city"`
|
2021-02-26 12:58:58 +00:00
|
|
|
Hostname string `json:"hostname"`
|
2021-05-09 00:51:34 +00:00
|
|
|
IP net.IP `json:"ip"`
|
2020-08-25 19:38:50 -04:00
|
|
|
}
|
|
|
|
|
|
2021-02-26 12:58:58 +00:00
|
|
|
type PIAServer struct {
|
2021-05-10 15:44:46 +00:00
|
|
|
Region string `json:"region"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
ServerName string `json:"server_name"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
PortForward bool `json:"port_forward"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
2021-02-26 12:58:58 +00:00
|
|
|
}
|
|
|
|
|
|
2021-03-05 23:12:19 -05:00
|
|
|
type PrivatevpnServer struct {
|
|
|
|
|
Country string `json:"country"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
IPs []net.IP `json:"ip"`
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-25 15:44:45 -04:00
|
|
|
type ProtonvpnServer struct {
|
|
|
|
|
Country string `json:"country"`
|
|
|
|
|
Region string `json:"region"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
EntryIP net.IP `json:"entry_ip"`
|
|
|
|
|
ExitIP net.IP `json:"exit_ip"` // TODO verify it matches with public IP once connected
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-26 12:58:58 +00:00
|
|
|
type PurevpnServer struct {
|
2021-05-10 00:36:14 +00:00
|
|
|
Country string `json:"country"`
|
|
|
|
|
Region string `json:"region"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
2021-02-26 12:58:58 +00:00
|
|
|
}
|
|
|
|
|
|
2020-08-25 19:38:50 -04:00
|
|
|
type SurfsharkServer struct {
|
2021-05-10 01:24:46 +00:00
|
|
|
Region string `json:"region"`
|
2021-08-23 10:25:00 -07:00
|
|
|
Country string `json:"country"` // Country is also used for multi-hop
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
RetroLoc string `json:"retroloc"` // TODO remove in v4
|
2021-05-10 01:24:46 +00:00
|
|
|
Hostname string `json:"hostname"`
|
2021-08-23 10:25:00 -07:00
|
|
|
MultiHop bool `json:"multihop"`
|
2021-05-10 01:24:46 +00:00
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
2020-08-25 19:38:50 -04:00
|
|
|
}
|
|
|
|
|
|
2021-02-17 20:36:30 -05:00
|
|
|
type TorguardServer struct {
|
2021-05-10 01:48:52 +00:00
|
|
|
Country string `json:"country"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
2021-02-17 20:36:30 -05:00
|
|
|
}
|
|
|
|
|
|
2021-06-20 09:18:03 -07:00
|
|
|
type VPNUnlimitedServer struct {
|
|
|
|
|
Country string `json:"country"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
Free bool `json:"free"`
|
|
|
|
|
Stream bool `json:"stream"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"`
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-25 19:38:50 -04:00
|
|
|
type VyprvpnServer struct {
|
2021-05-10 02:12:13 +00:00
|
|
|
Region string `json:"region"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
|
|
|
|
TCP bool `json:"tcp"`
|
|
|
|
|
UDP bool `json:"udp"` // only support for UDP
|
|
|
|
|
IPs []net.IP `json:"ips"`
|
2020-08-25 19:38:50 -04:00
|
|
|
}
|
|
|
|
|
|
2021-02-26 12:58:58 +00:00
|
|
|
type WindscribeServer struct {
|
2021-08-22 14:58:39 -07:00
|
|
|
VPN string `json:"vpn"`
|
2021-05-10 14:34:42 +00:00
|
|
|
Region string `json:"region"`
|
|
|
|
|
City string `json:"city"`
|
|
|
|
|
Hostname string `json:"hostname"`
|
2021-08-22 14:58:39 -07:00
|
|
|
OvpnX509 string `json:"x509,omitempty"`
|
|
|
|
|
WgPubKey string `json:"wgpubkey,omitempty"`
|
2021-05-10 14:34:42 +00:00
|
|
|
IPs []net.IP `json:"ips"`
|
2020-11-08 20:56:49 -05:00
|
|
|
}
|