mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-22 19:49:25 +00:00
Use int64 for DateEntered field
The `DateEntered` value expected to be a timestamp, so using int64 instead of uint make it easier to manipulate time.
This commit is contained in:
parent
9b48c4731a
commit
84ad053413
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ type Node struct {
|
||||||
City string `json:"city" db:"city"`
|
City string `json:"city" db:"city"`
|
||||||
Latitude float64 `json:"latitude" db:"lat"`
|
Latitude float64 `json:"latitude" db:"lat"`
|
||||||
Longitude float64 `json:"longitude" db:"lon"`
|
Longitude float64 `json:"longitude" db:"lon"`
|
||||||
DateEntered uint `json:"date_entered,omitempty" db:"date_entered"`
|
DateEntered int64 `json:"date_entered,omitempty" db:"date_entered"`
|
||||||
LastChecked int64 `json:"last_checked" db:"last_checked"`
|
LastChecked int64 `json:"last_checked" db:"last_checked"`
|
||||||
FailedCount uint `json:"failed_count,omitempty" db:"failed_count"`
|
FailedCount uint `json:"failed_count,omitempty" db:"failed_count"`
|
||||||
LastCheckStatus types.JSONText `json:"last_check_statuses" db:"last_check_status"`
|
LastCheckStatus types.JSONText `json:"last_check_statuses" db:"last_check_status"`
|
||||||
|
|
Loading…
Reference in a new issue