isTarget
This commit is contained in:
snoop 2017-06-26 20:01:57 +09:00
parent cec3e321f2
commit 774e43c1ad
3 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,8 @@ type DiscoveryHost struct {
Ports []*DiscoveryPort `json:"ports"` Ports []*DiscoveryPort `json:"ports"`
CreateDate timestamp.Timestamp `json:"createDate,omitempty"` CreateDate timestamp.Timestamp `json:"createDate,omitempty"`
UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"` UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"`
IsTarget bool `json:"isTarget,omitempty"`
} }
func (h *DiscoveryHost) SetPort(key string, value *DiscoveryPort) { func (h *DiscoveryHost) SetPort(key string, value *DiscoveryPort) {

View File

@ -17,6 +17,8 @@ type DiscoveryPort struct {
PortType string `json:"portType"` PortType string `json:"portType"`
Number uint16 `json:"portNumber"` Number uint16 `json:"portNumber"`
IsTarget bool `json:"isTarget,omitempty"`
} }
type PortScanHistory struct { type PortScanHistory struct {

View File

@ -11,6 +11,8 @@ type DiscoveryService struct {
Port *DiscoveryPort `json:"-"` Port *DiscoveryPort `json:"-"`
PortType string `json:"portType"` /*tls or normal*/ PortType string `json:"portType"` /*tls or normal*/
ServiceName string `json:"serviceName"` ServiceName string `json:"serviceName"`
IsTarget bool `json:"isTarget,omitempty"`
} }
func NewService(ptype string, serviceName string, port *DiscoveryPort) *DiscoveryService { func NewService(ptype string, serviceName string, port *DiscoveryPort) *DiscoveryService {