Persistent server pools (#226)
* GetAllServers with version & timestamp tests * Storage package to sync servers * Use storage Sync to get and use servers
This commit is contained in:
@@ -9,10 +9,14 @@ import (
|
||||
"github.com/qdm12/golibs/network"
|
||||
)
|
||||
|
||||
type windscribe struct{}
|
||||
type windscribe struct {
|
||||
servers []models.WindscribeServer
|
||||
}
|
||||
|
||||
func newWindscribe() *windscribe {
|
||||
return &windscribe{}
|
||||
func newWindscribe(servers []models.WindscribeServer) *windscribe {
|
||||
return &windscribe{
|
||||
servers: servers,
|
||||
}
|
||||
}
|
||||
|
||||
func (w *windscribe) filterServers(region string) (servers []models.WindscribeServer) {
|
||||
|
||||
Reference in New Issue
Block a user