2016-03-12 12:32:55 +00:00
|
|
|
package data
|
|
|
|
|
2017-01-20 21:27:44 +00:00
|
|
|
// Neighbours struct
|
2016-03-12 12:32:55 +00:00
|
|
|
type Neighbours struct {
|
2017-06-30 05:44:39 +00:00
|
|
|
Batadv map[string]BatadvNeighbours `json:"batadv"`
|
|
|
|
LLDP map[string]LLDPNeighbours `json:"lldp"`
|
|
|
|
Babel map[string]BabelNeighbours `json:"babel"`
|
|
|
|
WifiNeighbours map[string]WifiNeighbours `json:"wifi"`
|
|
|
|
NodeID string `json:"node_id"`
|
2016-03-12 12:32:55 +00:00
|
|
|
}
|
|
|
|
|
2017-01-20 21:27:44 +00:00
|
|
|
// WifiLink struct
|
2016-03-12 12:32:55 +00:00
|
|
|
type WifiLink struct {
|
|
|
|
Inactive int `json:"inactive"`
|
|
|
|
Noise int `json:"nois"`
|
|
|
|
Signal int `json:"signal"`
|
|
|
|
}
|
|
|
|
|
2017-01-20 21:27:44 +00:00
|
|
|
// BatmanLink struct
|
2016-03-12 12:32:55 +00:00
|
|
|
type BatmanLink struct {
|
|
|
|
Lastseen float64 `json:"lastseen"`
|
|
|
|
Tq int `json:"tq"`
|
|
|
|
}
|
|
|
|
|
2017-06-30 05:44:39 +00:00
|
|
|
// BabelLink struct
|
|
|
|
type BabelLink struct {
|
|
|
|
Address string `json:"address"`
|
|
|
|
}
|
|
|
|
|
2017-01-20 21:27:44 +00:00
|
|
|
// LLDPLink struct
|
2016-07-13 14:11:25 +00:00
|
|
|
type LLDPLink struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Description string `json:"descr"`
|
|
|
|
}
|
|
|
|
|
2017-01-20 21:27:44 +00:00
|
|
|
// BatadvNeighbours struct
|
2016-03-12 12:32:55 +00:00
|
|
|
type BatadvNeighbours struct {
|
|
|
|
Neighbours map[string]BatmanLink `json:"neighbours"`
|
|
|
|
}
|
|
|
|
|
2017-06-30 05:44:39 +00:00
|
|
|
// BabelNeighbours struct
|
|
|
|
type BabelNeighbours []BabelLink
|
|
|
|
|
2017-01-20 21:27:44 +00:00
|
|
|
// WifiNeighbours struct
|
2016-03-12 12:32:55 +00:00
|
|
|
type WifiNeighbours struct {
|
|
|
|
Neighbours map[string]WifiLink `json:"neighbours"`
|
|
|
|
}
|
2016-07-13 14:11:25 +00:00
|
|
|
|
2017-01-20 21:27:44 +00:00
|
|
|
// LLDPNeighbours struct
|
2016-07-13 14:11:25 +00:00
|
|
|
type LLDPNeighbours map[string]LLDPLink
|