2016-03-12 12:32:55 +00:00
|
|
|
package data
|
|
|
|
|
|
|
|
type Neighbours struct {
|
|
|
|
Batadv map[string]BatadvNeighbours `json:"batadv"`
|
2016-07-13 14:11:25 +00:00
|
|
|
LLDP map[string]LLDPNeighbours `json:"lldp"`
|
2016-03-12 12:32:55 +00:00
|
|
|
//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"`
|
|
|
|
}
|
|
|
|
|
2016-07-13 14:11:25 +00:00
|
|
|
type LLDPLink struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Description string `json:"descr"`
|
|
|
|
}
|
|
|
|
|
2016-03-12 12:32:55 +00:00
|
|
|
type BatadvNeighbours struct {
|
|
|
|
Neighbours map[string]BatmanLink `json:"neighbours"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WifiNeighbours struct {
|
|
|
|
Neighbours map[string]WifiLink `json:"neighbours"`
|
|
|
|
}
|
2016-07-13 14:11:25 +00:00
|
|
|
|
|
|
|
type LLDPNeighbours map[string]LLDPLink
|