chore(surfshark): add package internal/provider/surshark/server

- Merge `internal/models/location.go` and `internal/constants/surfshark.go` into `internal/provider/surfshark/servers/locationdata.go`
This commit is contained in:
Quentin McGaw
2022-05-07 19:12:29 +00:00
parent 306de8feda
commit 1b2bcf901a
8 changed files with 30 additions and 36 deletions

View File

@@ -1,12 +1,12 @@
package validation
import (
"github.com/qdm12/gluetun/internal/constants"
"github.com/qdm12/gluetun/internal/provider/surfshark/servers"
)
// TODO remove in v4.
func SurfsharkRetroLocChoices() (choices []string) {
locationData := constants.SurfsharkLocationData()
locationData := servers.LocationData()
choices = make([]string, 0, len(locationData))
seen := make(map[string]struct{}, len(locationData))
for _, data := range locationData {