2018-08-12 10:46:46 +00:00
|
|
|
package discovery
|
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"git.loafle.net/overflow/model/meta"
|
|
|
|
"git.loafle.net/overflow/model/util"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Zone struct {
|
2018-09-11 07:11:02 +00:00
|
|
|
Network string `json:"network,omitempty"`
|
|
|
|
Iface string `json:"iface,omitempty"`
|
|
|
|
MetaIPType *meta.MetaIPType `json:"metaIPType,omitempty"`
|
|
|
|
Address string `json:"address,omitempty"`
|
|
|
|
Mac string `json:"mac,omitempty"`
|
2018-08-12 10:46:46 +00:00
|
|
|
|
2018-09-11 07:11:02 +00:00
|
|
|
Meta map[string]map[string]string `json:"meta,omitempty"`
|
|
|
|
DiscoveredBy []string `json:"discoveredBy,omitempty"`
|
|
|
|
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
2018-08-12 10:46:46 +00:00
|
|
|
|
|
|
|
mtx sync.RWMutex `json:"-"`
|
|
|
|
}
|