Server lists simplify
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc 2023-12-09 20:09:55 +01:00
parent 535181d669
commit 1dda1b27a8
2 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,6 @@ type Identity struct {
Device meowlib.KeyPair `json:"device,omitempty"` Device meowlib.KeyPair `json:"device,omitempty"`
KnownServers ServerList `json:"known_servers,omitempty"` KnownServers ServerList `json:"known_servers,omitempty"`
MessageServers ServerList `json:"message_servers,omitempty"` MessageServers ServerList `json:"message_servers,omitempty"`
ArchiveServers ServerList `json:"archive_servers,omitempty"`
OwnedServers ServerList `json:"owned_servers,omitempty"`
DefaultDbPassword string `json:"default_db_password,omitempty"` DefaultDbPassword string `json:"default_db_password,omitempty"`
DbPasswordStore bool `json:"db_password_store,omitempty"` DbPasswordStore bool `json:"db_password_store,omitempty"`
OwnedDevices PeerList `json:"owned_devices,omitempty"` OwnedDevices PeerList `json:"owned_devices,omitempty"`

View File

@ -27,6 +27,7 @@ type Server struct {
ManagerKp meowlib.KeyPair `json:"manager_kp,omitempty"` ManagerKp meowlib.KeyPair `json:"manager_kp,omitempty"`
Country string `json:"country,omitempty"` Country string `json:"country,omitempty"`
AllowedDelay int `json:"allowed_delay,omitempty"` AllowedDelay int `json:"allowed_delay,omitempty"`
Backup bool `json:"backup,omitempty"`
} }
// CreateServerFromUrl creates a server from a basic url, ex : https://my.meowserver.example:8443/meow/ // CreateServerFromUrl creates a server from a basic url, ex : https://my.meowserver.example:8443/meow/