added
isTarget
This commit is contained in:
parent
cec3e321f2
commit
774e43c1ad
@ -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) {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user