diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 18:19:45 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 18:19:45 +0100 |
| commit | 2da03b735517a034a5b369550036c853a7dad819 (patch) | |
| tree | 2c039dd46b43395d60a2fa8159886596f4ef6286 /src/server.go | |
| parent | 40053552852cf8c27fe7658b64df001d65b0a65e (diff) | |
Run gofumpt
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"` } |
