Added Mullvad server model
This commit is contained in:
@@ -11,6 +11,12 @@ type (
|
|||||||
PIAEncryption string
|
PIAEncryption string
|
||||||
// PIARegion is used to define the list of regions available for PIA
|
// PIARegion is used to define the list of regions available for PIA
|
||||||
PIARegion string
|
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 is an HTTP(s) URL address
|
||||||
URL string
|
URL string
|
||||||
// Filepath is a local filesytem file path
|
// Filepath is a local filesytem file path
|
||||||
|
|||||||
12
internal/models/mullvad.go
Normal file
12
internal/models/mullvad.go
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user