model/net/nic.go

18 lines
462 B
Go
Raw Normal View History

2018-08-20 08:25:51 +00:00
package net
import (
omm "git.loafle.net/overflow/model/meta"
)
type Interface struct {
Iface string `json:"iface,omitempty"`
Mac string `json:"mac,omitempty"`
Addresses []InterfaceAddress `json:"addresses,omitempty"`
}
type InterfaceAddress struct {
MetaIPType *omm.MetaIPType `json:"metaIPType,omitempty"`
Address string `json:"address,omitempty"`
Netmask string `json:"netmask,omitempty"`
}