yanic/data/neighbours.go

42 lines
910 B
Go
Raw Permalink Normal View History

package data
// Neighbours struct
type Neighbours struct {
Batadv map[string]BatadvNeighbours `json:"batadv"`
2016-07-13 14:11:25 +00:00
LLDP map[string]LLDPNeighbours `json:"lldp"`
//WifiNeighbours map[string]WifiNeighbours `json:"wifi"`
NodeID string `json:"node_id"`
}
// WifiLink struct
type WifiLink struct {
Inactive int `json:"inactive"`
Noise int `json:"nois"`
Signal int `json:"signal"`
}
// BatmanLink struct
type BatmanLink struct {
Lastseen float64 `json:"lastseen"`
Tq int `json:"tq"`
}
// LLDPLink struct
2016-07-13 14:11:25 +00:00
type LLDPLink struct {
Name string `json:"name"`
Description string `json:"descr"`
}
// BatadvNeighbours struct
type BatadvNeighbours struct {
Neighbours map[string]BatmanLink `json:"neighbours"`
}
// WifiNeighbours struct
type WifiNeighbours struct {
Neighbours map[string]WifiLink `json:"neighbours"`
}
2016-07-13 14:11:25 +00:00
// LLDPNeighbours struct
2016-07-13 14:11:25 +00:00
type LLDPNeighbours map[string]LLDPLink