summaryrefslogtreecommitdiff
path: root/internal/types
diff options
context:
space:
mode:
Diffstat (limited to 'internal/types')
-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:"-"`
}