mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 17:17:00 +08:00
27 lines
671 B
Go
Executable File
27 lines
671 B
Go
Executable File
package schema
|
|
|
|
type Lease struct {
|
|
Address string `json:"address"`
|
|
UUID string `json:"uuid"`
|
|
Alias string `json:"alias"`
|
|
Client string `json:"client"`
|
|
Type string `json:"type"`
|
|
Network string `json:"network"`
|
|
}
|
|
|
|
type PrefixRoute struct {
|
|
Prefix string `json:"prefix"`
|
|
NextHop string `json:"nexthop"`
|
|
Metric int `json:"metric"`
|
|
Mode string `json:"mode"`
|
|
}
|
|
|
|
type Network struct {
|
|
Name string `json:"name"`
|
|
IfAddr string `json:"ifAddr,omitempty"`
|
|
IpStart string `json:"ipStart,omitempty"`
|
|
IpEnd string `json:"ipEnd,omitempty"`
|
|
Netmask string `json:"netmask"`
|
|
Routes []PrefixRoute `json:"routes"`
|
|
}
|