Added Mullvad server model

This commit is contained in:
Quentin McGaw (desktop)
2020-02-16 17:33:52 +00:00
parent ded635bd56
commit 5c69ddc05f
2 changed files with 18 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ type (
PIAEncryption string
// PIARegion is used to define the list of regions available for PIA
PIARegion string
// MullvadCountry is used as the country for a Mullvad server
MullvadCountry string
// MullvadCity is used as the city for a Mullvad server
MullvadCity string
// MullvadProvider is used as the Internet service provider for a Mullvad server
MullvadProvider string
// URL is an HTTP(s) URL address
URL string
// Filepath is a local filesytem file path

View File

@@ -0,0 +1,12 @@
package models
import "net"
type MullvadServer struct {
Country MullvadCountry
City MullvadCity
Provider MullvadProvider
Owned bool
IPs []net.IP
DefaultPort uint16
}