Maintenance: add revive linter

This commit is contained in:
Quentin McGaw (desktop)
2021-06-20 16:12:39 +00:00
parent d3c63680e8
commit 400affe429
16 changed files with 44 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
package constants
const (
// HealthcheckAddress is the default listening address for the healthcheck server.
HealthcheckAddress = "127.0.0.1:9999"
)

View File

@@ -1,3 +1,4 @@
//nolint:revive
package constants
const (

View File

@@ -21,10 +21,10 @@ const (
RootHints string = "/etc/unbound/root.hints"
// RootKey is the filepath to the root.key file used by Unbound.
RootKey string = "/etc/unbound/root.key"
// Client key filepath, used by Cyberghost.
// ClientKey is the client key filepath.
ClientKey string = "/gluetun/client.key"
// Client certificate filepath, used by Cyberghost.
// ClientCertificate is the client certificate filepath.
ClientCertificate string = "/gluetun/client.crt"
// Servers information filepath.
// ServersData is the server information filepath.
ServersData = "/gluetun/servers.json"
)

View File

@@ -48,6 +48,7 @@ func PrivadoHostnameChoices() (choices []string) {
}
//nolint:lll
// PrivadoServers returns a slice of all the Privado servers.
func PrivadoServers() []models.PrivadoServer {
return []models.PrivadoServer{
{Country: "Argentina", Region: "Buenos Aires F.D.", City: "Buenos Aires", Hostname: "eze-001.vpn.privado.io", IP: net.IP{168, 205, 93, 211}},

View File

@@ -1,3 +1,4 @@
//nolint:revive
package constants
import (

View File

@@ -11,7 +11,7 @@ const (
Ivpn = "ivpn"
// Mullvad is a VPN provider.
Mullvad = "mullvad"
// NordVPN is a VPN provider.
// Nordvpn is a VPN provider.
Nordvpn = "nordvpn"
// Privado is a VPN provider.
Privado = "privado"
@@ -21,7 +21,7 @@ const (
Privatevpn = "privatevpn"
// Protonvpn is a VPN provider.
Protonvpn = "protonvpn"
// PureVPN is a VPN provider.
// Purevpn is a VPN provider.
Purevpn = "purevpn"
// Surfshark is a VPN provider.
Surfshark = "surfshark"

View File

@@ -21,6 +21,7 @@ func VyprvpnRegionChoices() (choices []string) {
}
//nolint:lll
// VyprvpnServers returns a slice of all the VyprVPN servers.
func VyprvpnServers() []models.VyprvpnServer {
return []models.VyprvpnServer{
{Region: "Algeria", Hostname: "dz1.vyprvpn.com", TCP: false, UDP: true, IPs: []net.IP{{209, 99, 75, 20}}},

View File

@@ -40,6 +40,7 @@ func WindscribeHostnameChoices() (choices []string) {
}
//nolint:lll
// WindscribeServers returns a slice of all the Windscribe servers.
func WindscribeServers() []models.WindscribeServer {
return []models.WindscribeServer{
{Region: "Albania", City: "Tirana", Hostname: "al-002.whiskergalaxy.com", IPs: []net.IP{{31, 171, 152, 178}, {31, 171, 152, 179}, {31, 171, 152, 180}}},