Logo
Explore Help
Register Sign In
admin/gluetun
1
0
Fork 0
You've already forked gluetun
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
fd0267efeff9807d7f916a18cf4924f77075b1a0
gluetun/internal/provider/vyprvpn/updater/sort.go

14 lines
222 B
Go
Raw Normal View History

Maintenance: refactor servers updater code - Require at least 80% of number of servers now to pass - Each provider is in its own package with a common structure - Unzip package with unzipper interface - Openvpn package with extraction and download functions
2021-05-08 00:59:42 +00:00
package vyprvpn
import (
"sort"
"github.com/qdm12/gluetun/internal/models"
)
chore(models): common `Server` & `Servers` for all providers (#943)
2022-04-16 22:25:36 +02:00
func sortServers(servers []models.Server) {
Maintenance: refactor servers updater code - Require at least 80% of number of servers now to pass - Each provider is in its own package with a common structure - Unzip package with unzipper interface - Openvpn package with extraction and download functions
2021-05-08 00:59:42 +00:00
sort.Slice(servers, func(i, j int) bool {
return servers[i].Region < servers[j].Region
})
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 80ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API