diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-09 14:18:22 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-09 14:18:22 +0200 |
| commit | 9c7d9958132bcea0aa5ff6ab4aaec67c73087408 (patch) | |
| tree | b3a85b1b340de7b8169542c32972a7f3dd2314aa /internal/types | |
| parent | 0c6233ab691973859b6d636e6d9fdddd2a6acd5e (diff) | |
Refactor: Cleanup time calculations and usage
Diffstat (limited to 'internal/types')
| -rw-r--r-- | internal/types/server.go | 5 |
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:"-"` } |
