Maint: internal/storage rework
- No more global variables - Inject merged servers to configuration package - Fix #566: configuration parsing to use persisted servers.json - Move server data files from `internal/constants` to `internal/storage`
This commit is contained in:
7
internal/storage/servers.go
Normal file
7
internal/storage/servers.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package storage
|
||||
|
||||
import "github.com/qdm12/gluetun/internal/models"
|
||||
|
||||
func (s *Storage) GetServers() models.AllServers {
|
||||
return s.mergedServers.GetCopy()
|
||||
}
|
||||
Reference in New Issue
Block a user