Freifunk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
513 B

3 years ago
  1. package runtime
  2. import "github.com/FreifunkBremen/yanic/jsontime"
  3. type Node struct {
  4. Firstseen jsontime.Time `json:"firstseen"`
  5. Lastseen jsontime.Time `json:"lastseen"`
  6. IsOnline bool `json:"is_online"`
  7. NodeID string `json:"node_id"`
  8. Hostname string `json:"hostname"`
  9. SiteCode string `json:"community"`
  10. Location *Location `json:"location"`
  11. Clients uint32 `json:"clients"`
  12. }
  13. type Location struct {
  14. Lon float64 `json:"long"`
  15. Lat float64 `json:"lat"`
  16. }