Commit 862569d1 authored by nrbffs's avatar nrbffs

nodelist: add zip

parent be48b274
Pipeline #231 failed with stages
in 1 minute and 4 seconds
......@@ -21,6 +21,7 @@ type Node struct {
LastContact jsontime.Time `json:"lastcontact"`
Clients uint32 `json:"clients"`
} `json:"status"`
Zip string `json:"zip"`
}
type Position struct {
......@@ -36,6 +37,7 @@ func NewNode(n *runtime.Node) (node *Node) {
}
if location := nodeinfo.Location; location != nil {
node.Position = &Position{Lat: location.Latitude, Long: location.Longitude}
node.Zip = location.Zip
}
node.Status.Online = n.Online
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment