summaryrefslogtreecommitdiff
path: root/internal/types/server.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-09 14:18:22 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-09 14:18:22 +0200
commit9c7d9958132bcea0aa5ff6ab4aaec67c73087408 (patch)
treeb3a85b1b340de7b8169542c32972a7f3dd2314aa /internal/types/server.go
parent0c6233ab691973859b6d636e6d9fdddd2a6acd5e (diff)
Refactor: Cleanup time calculations and usage
Diffstat (limited to 'internal/types/server.go')
-rw-r--r--internal/types/server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/types/server.go b/internal/types/server.go
index 9e68a5c..e626183 100644
--- a/internal/types/server.go
+++ b/internal/types/server.go
@@ -2,6 +2,7 @@ package types
import (
"encoding/json"
+ "time"
)
// Shared server types
@@ -11,7 +12,7 @@ import (
type DiscoveryOrganizations struct {
Version uint64 `json:"v"`
List []DiscoveryOrganization `json:"organization_list"`
- Timestamp int64 `json:"-"`
+ Timestamp time.Time `json:"-"`
RawString string `json:"-"`
}
@@ -29,7 +30,7 @@ type DiscoveryOrganization struct {
type DiscoveryServers struct {
Version uint64 `json:"v"`
List []DiscoveryServer `json:"server_list"`
- Timestamp int64 `json:"-"`
+ Timestamp time.Time `json:"-"`
RawString string `json:"-"`
}