yanic/data/neighbours.go
Julian Kornberger d1b315aa6e Copy data structs from node-informant/gluon-collector/data
Some fields are missing there
2016-03-12 16:21:09 +01:00

27 lines
567 B
Go

package data
type Neighbours struct {
Batadv map[string]BatadvNeighbours `json:"batadv"`
//WifiNeighbours map[string]WifiNeighbours `json:"wifi"`
NodeId string `json:"node_id"`
}
type WifiLink struct {
Inactive int `json:"inactive"`
Noise int `json:"nois"`
Signal int `json:"signal"`
}
type BatmanLink struct {
Lastseen float64 `json:"lastseen"`
Tq int `json:"tq"`
}
type BatadvNeighbours struct {
Neighbours map[string]BatmanLink `json:"neighbours"`
}
type WifiNeighbours struct {
Neighbours map[string]WifiLink `json:"neighbours"`
}