2018-04-26 07:37:59 +00:00
|
|
|
package discovery
|
2018-04-12 09:38:04 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"git.loafle.net/overflow/commons-go/core/util"
|
2018-06-12 09:18:11 +00:00
|
|
|
"sync"
|
2018-04-12 09:38:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Zone struct {
|
2018-06-12 09:18:11 +00:00
|
|
|
//ID json.Number `json:"id,Number,omitempty"`
|
|
|
|
//Network string `json:"network,omitempty"`
|
|
|
|
//IPV4 string `json:"ipv4,omitempty"`
|
|
|
|
//IPV6 string `json:"ipv6,omitempty"`
|
|
|
|
//Iface string `json:"iface,omitempty"`
|
|
|
|
//Mac string `json:"mac,omitempty"`
|
|
|
|
//
|
|
|
|
//DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
|
|
|
//
|
|
|
|
//mtx sync.RWMutex `json:"-"`
|
|
|
|
|
|
|
|
Network string `json:"network, omitempty"`
|
|
|
|
Iface string `json:"iface, omitempty"`
|
|
|
|
MetaIPTypeKey string `json:"metaIPTypeKey, omitempty"`
|
|
|
|
Address string `json:"address, omitempty"`
|
|
|
|
Mac string `json:"mac, omitempty"`
|
2018-04-12 09:38:04 +00:00
|
|
|
|
2018-05-11 02:24:21 +00:00
|
|
|
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
2018-04-12 09:38:04 +00:00
|
|
|
|
|
|
|
mtx sync.RWMutex `json:"-"`
|
|
|
|
}
|