model/net/nic.go
2018-09-13 12:27:20 +09:00

21 lines
650 B
Go

package net
import (
omm "git.loafle.net/overflow/model/meta"
)
type Interface struct {
Iface string `json:"iface,omitempty"`
FriendlyName string `json:"friendlyName,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"`
Network string `json:"network,omitempty"`
Gateway string `json:"gateway,omitempty"`
}