summaryrefslogtreecommitdiff
path: root/internal/types/server.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-07 15:41:16 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-07 15:41:16 +0200
commit7d67ce7f6a15970677b7d0b8f4912fe379862515 (patch)
tree62df25f68432308c048ffd8029bbe896f5fa4845 /internal/types/server.go
parent1865b016d0cca74cd3703db5a3b4217917988dec (diff)
Format: Run gofumpt
Diffstat (limited to 'internal/types/server.go')
-rw-r--r--internal/types/server.go29
1 files changed, 14 insertions, 15 deletions
diff --git a/internal/types/server.go b/internal/types/server.go
index ba9b217..31a7bcc 100644
--- a/internal/types/server.go
+++ b/internal/types/server.go
@@ -5,10 +5,10 @@ package types
// Structs that define the json format for
// url: "https://disco.eduvpn.org/v2/organization_list.json"
type DiscoveryOrganizations struct {
- Version uint64 `json:"v"`
- List []DiscoveryOrganization `json:"organization_list"`
- Timestamp int64 `json:"-"`
- RawString string `json:"-"`
+ Version uint64 `json:"v"`
+ List []DiscoveryOrganization `json:"organization_list"`
+ Timestamp int64 `json:"-"`
+ RawString string `json:"-"`
}
type DiscoveryOrganization struct {
@@ -25,18 +25,17 @@ type DiscoveryOrganization struct {
// Structs that define the json format for
// url: "https://disco.eduvpn.org/v2/server_list.json"
type DiscoveryServers struct {
- Version uint64 `json:"v"`
- List []DiscoveryServer `json:"server_list"`
- Timestamp int64 `json:"-"`
- RawString string `json:"-"`
+ Version uint64 `json:"v"`
+ List []DiscoveryServer `json:"server_list"`
+ Timestamp int64 `json:"-"`
+ RawString string `json:"-"`
}
type DiscoveryServer struct {
- AuthenticationURLTemplate string `json:"authentication_url_template"`
- BaseURL string `json:"base_url"`
- CountryCode string `json:"country_code"`
- PublicKeyList []string `json:"public_key_list"`
- Type string `json:"server_type"`
- SupportContact []string `json:"support_contact"`
+ AuthenticationURLTemplate string `json:"authentication_url_template"`
+ BaseURL string `json:"base_url"`
+ CountryCode string `json:"country_code"`
+ PublicKeyList []string `json:"public_key_list"`
+ Type string `json:"server_type"`
+ SupportContact []string `json:"support_contact"`
}
-