diff --git a/discovery/Host.go b/discovery/Host.go index 4322c52..566e3fa 100644 --- a/discovery/Host.go +++ b/discovery/Host.go @@ -15,5 +15,6 @@ type Host struct { Zone *Zone `json:"zone,omitempty"` PortList []*Port `json:"portList,omitempty"` + DiscoveredBy string `json:"discoveredBy,omitempty"` DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"` } diff --git a/discovery/Port.go b/discovery/Port.go index 379e0b8..01121b1 100644 --- a/discovery/Port.go +++ b/discovery/Port.go @@ -13,10 +13,10 @@ type Port struct { PortNumber json.Number `json:"portNumber,omitempty"` Meta map[string]string `json:"meta,omitempty"` - DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"` - Host *Host `json:"host,omitempty"` ServiceList []*Service `json:"serviceList,omitempty"` - UDPLayer gopacket.Layer `json:"-"` + DiscoveredBy string `json:"discoveredBy,omitempty"` + DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"` + UDPLayer gopacket.Layer `json:"-"` } diff --git a/discovery/Service.go b/discovery/Service.go index bd3ed9d..f7a6b7e 100644 --- a/discovery/Service.go +++ b/discovery/Service.go @@ -14,6 +14,7 @@ type Service struct { Port *Port `json:"port,omitempty"` + DiscoveredBy string `json:"discoveredBy,omitempty"` DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` } diff --git a/discovery/Zone.go b/discovery/Zone.go index 54fbe0f..d637f91 100644 --- a/discovery/Zone.go +++ b/discovery/Zone.go @@ -15,6 +15,7 @@ type Zone struct { Mac string `json:"mac,omitempty"` Meta map[string]string `json:"meta,omitempty"` + DiscoveredBy string `json:"discoveredBy,omitempty"` DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"` mtx sync.RWMutex `json:"-"`