Files
openlan/pkg/schema/network.go
2022-07-29 23:38:54 +08:00

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"`
}