2018-04-26 07:37:59 +00:00
|
|
|
package discovery
|
2018-04-12 09:38:04 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"git.loafle.net/overflow/commons-go/core/util"
|
2018-06-12 09:18:11 +00:00
|
|
|
"github.com/google/gopacket"
|
2018-04-12 09:38:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Port struct {
|
2018-06-12 09:18:11 +00:00
|
|
|
MetaPortTypeKey string `json:"metaPortTypeKey,omitempty"`
|
|
|
|
PortNumber json.Number `json:"portNumber, omitempty"`
|
|
|
|
DiscoveredDate *util.Timestamp `json:"discoveredDate, omitempty"`
|
2018-04-12 09:38:04 +00:00
|
|
|
|
2018-06-12 09:18:11 +00:00
|
|
|
Host *Host `json:"host,omitempty"`
|
2018-04-12 09:38:04 +00:00
|
|
|
|
2018-06-12 09:18:11 +00:00
|
|
|
ServiceList []Service `json:"serviceList, omitempty"`
|
2018-04-12 09:38:04 +00:00
|
|
|
|
|
|
|
UDPLayer gopacket.Layer `json:"-"`
|
2018-06-12 09:18:11 +00:00
|
|
|
|
|
|
|
//Host *Host `json:"host,omitempty"`
|
|
|
|
//
|
|
|
|
//ID json.Number `json:"id,Number,omitempty"`
|
|
|
|
//PortType constants.PortType `json:"portType,omitempty"`
|
|
|
|
//PortNumber json.Number `json:"portNumber,omitempty"`
|
|
|
|
//
|
|
|
|
//DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
|
|
|
//
|
|
|
|
//UDPLayer gopacket.Layer `json:"-"`
|
2018-04-12 09:38:04 +00:00
|
|
|
}
|