This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
nodelistdaemon/runtime/nodes.go

20 lines
513 B
Go
Raw Permalink Normal View History

2017-09-13 20:41:29 +02:00
package runtime
import "github.com/FreifunkBremen/yanic/jsontime"
type Node struct {
Firstseen jsontime.Time `json:"firstseen"`
Lastseen jsontime.Time `json:"lastseen"`
IsOnline bool `json:"is_online"`
NodeID string `json:"node_id"`
Hostname string `json:"hostname"`
SiteCode string `json:"community"`
Location *Location `json:"location"`
Clients uint32 `json:"clients"`
}
type Location struct {
Lon float64 `json:"long"`
Lat float64 `json:"lat"`
}