2018-08-12 10:46:46 +00:00
|
|
|
package discovery
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"git.loafle.net/overflow/model/meta"
|
|
|
|
"git.loafle.net/overflow/model/util"
|
|
|
|
"github.com/google/gopacket"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Port struct {
|
2018-08-28 10:42:07 +00:00
|
|
|
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
|
|
|
|
PortNumber json.Number `json:"portNumber,omitempty"`
|
|
|
|
Meta map[string]string `json:"meta,omitempty"`
|
|
|
|
|
2018-08-12 10:46:46 +00:00
|
|
|
Host *Host `json:"host,omitempty"`
|
|
|
|
ServiceList []*Service `json:"serviceList,omitempty"`
|
|
|
|
|
2018-09-04 20:43:44 +00:00
|
|
|
DiscoveredBy string `json:"discoveredBy,omitempty"`
|
|
|
|
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
|
|
|
UDPLayer gopacket.Layer `json:"-"`
|
2018-08-12 10:46:46 +00:00
|
|
|
}
|