mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 08:36:59 +08:00
24 lines
531 B
Go
Executable File
24 lines
531 B
Go
Executable File
package schema
|
|
|
|
type Device struct {
|
|
Name string `json:"name"`
|
|
Address string `json:"address,omitempty"`
|
|
Mac string `json:"mac,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
Provider string `json:"provider"`
|
|
Mtu int `json:"mtu,omitempty"`
|
|
}
|
|
|
|
type HwMacInfo struct {
|
|
Uptime int64 `json:"uptime"`
|
|
Address string `json:"address"`
|
|
Device string `json:"device"`
|
|
}
|
|
|
|
type Bridge struct {
|
|
Device
|
|
Macs []HwMacInfo `json:"macs"`
|
|
Slaves []Device `json:"slaves"`
|
|
Stats interface{} `json:"stats"`
|
|
}
|