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 cyberghost struct{}
|
||||
type cyberghost struct {
|
||||
servers []models.CyberghostServer
|
||||
}
|
||||
|
||||
func newCyberghost() *cyberghost {
|
||||
return &cyberghost{}
|
||||
func newCyberghost(servers []models.CyberghostServer) *cyberghost {
|
||||
return &cyberghost{
|
||||
servers: servers,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *cyberghost) filterServers(region, group string) (servers []models.CyberghostServer) {
|
||||
|
||||
Reference in New Issue
Block a user