diff options
Diffstat (limited to 'types')
| -rw-r--r-- | types/protocol/protocol.go | 2 | ||||
| -rw-r--r-- | types/types.go | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/types/protocol/protocol.go b/types/protocol/protocol.go index d165105..6e003f7 100644 --- a/types/protocol/protocol.go +++ b/types/protocol/protocol.go @@ -12,7 +12,7 @@ const ( ) func New(p string) Protocol { - switch(p) { + switch p { case "openvpn": return OpenVPN case "wireguard": diff --git a/types/types.go b/types/types.go index 99b997e..4161108 100644 --- a/types/types.go +++ b/types/types.go @@ -70,17 +70,17 @@ type DiscoveryServer struct { } type Expiry struct { - StartTime int64 `json:"start_time"` - EndTime int64 `json:"end_time"` - ButtonTime int64 `json:"button_time"` - CountdownTime int64 `json:"countdown_time"` + StartTime int64 `json:"start_time"` + EndTime int64 `json:"end_time"` + ButtonTime int64 `json:"button_time"` + CountdownTime int64 `json:"countdown_time"` NotificationTimes []int64 `json:"notification_times"` } type Profile struct { - Identifier string `json:"identifier"` - DisplayName map[string]string `json:"display_name,omitempty"` - Protocols []protocol.Protocol `json:"supported_protocols"` + Identifier string `json:"identifier"` + DisplayName map[string]string `json:"display_name,omitempty"` + Protocols []protocol.Protocol `json:"supported_protocols"` } type Profiles struct { @@ -118,10 +118,10 @@ type ServerList struct { } type Configuration struct { - VPNConfig string `json:"config"` + VPNConfig string `json:"config"` Protocol protocol.Protocol `json:"protocol"` - DefaultGateway bool `json:"default_gateway"` - Tokens Tokens `json:"tokens"` + DefaultGateway bool `json:"default_gateway"` + Tokens Tokens `json:"tokens"` } type ServerType int8 |
