diff options
Diffstat (limited to 'internal/types/server.go')
| -rw-r--r-- | internal/types/server.go | 29 |
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"` } - |
