diff options
Diffstat (limited to 'src/server.go')
| -rw-r--r-- | src/server.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/server.go b/src/server.go index 1dc0f88..d512049 100644 --- a/src/server.go +++ b/src/server.go @@ -1,27 +1,27 @@ package eduvpn import ( - "errors" "encoding/json" + "errors" ) type Server struct { - BaseURL string `json:"base_url"` - Endpoints *ServerEndpoints `json:"endpoints"` - OAuth *OAuth `json:"oauth"` + BaseURL string `json:"base_url"` + Endpoints *ServerEndpoints `json:"endpoints"` + OAuth *OAuth `json:"oauth"` Profiles *ServerProfileInfo `json:"profiles"` } type ServerProfile struct { - ID string `json:"profile_id"` - DisplayName string `json:"display_name"` - VPNProtoList []string `json:"vpn_proto_list"` - DefaultGateway bool `json:"default_gateway"` + ID string `json:"profile_id"` + DisplayName string `json:"display_name"` + VPNProtoList []string `json:"vpn_proto_list"` + DefaultGateway bool `json:"default_gateway"` } type ServerProfileInfo struct { Current uint8 `json:"current_profile"` - Info struct { + Info struct { ProfileList []ServerProfile `json:"profile_list"` } `json:"info"` } |
