2018-04-26 07:37:59 +00:00
|
|
|
package discovery
|
2018-04-12 09:38:04 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"git.loafle.net/overflow/commons-go/core/util"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Zone struct {
|
|
|
|
ID json.Number `json:"id,Number,omitempty"`
|
|
|
|
Network string `json:"network,omitempty"`
|
2018-04-27 16:48:46 +00:00
|
|
|
IPV4 string `json:"ipv4,omitempty"`
|
|
|
|
IPV6 string `json:"ipv6,omitempty"`
|
2018-04-12 09:38:04 +00:00
|
|
|
Iface string `json:"iface,omitempty"`
|
|
|
|
Mac string `json:"mac,omitempty"`
|
|
|
|
|
|
|
|
DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"`
|
|
|
|
|
|
|
|
mtx sync.RWMutex `json:"-"`
|
|
|
|
}
|