added
isTarget
This commit is contained in:
parent
cec3e321f2
commit
774e43c1ad
@ -26,6 +26,8 @@ type DiscoveryHost struct {
|
||||
Ports []*DiscoveryPort `json:"ports"`
|
||||
CreateDate timestamp.Timestamp `json:"createDate,omitempty"`
|
||||
UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"`
|
||||
|
||||
IsTarget bool `json:"isTarget,omitempty"`
|
||||
}
|
||||
|
||||
func (h *DiscoveryHost) SetPort(key string, value *DiscoveryPort) {
|
||||
|
@ -17,6 +17,8 @@ type DiscoveryPort struct {
|
||||
|
||||
PortType string `json:"portType"`
|
||||
Number uint16 `json:"portNumber"`
|
||||
|
||||
IsTarget bool `json:"isTarget,omitempty"`
|
||||
}
|
||||
|
||||
type PortScanHistory struct {
|
||||
|
@ -11,6 +11,8 @@ type DiscoveryService struct {
|
||||
Port *DiscoveryPort `json:"-"`
|
||||
PortType string `json:"portType"` /*tls or normal*/
|
||||
ServiceName string `json:"serviceName"`
|
||||
|
||||
IsTarget bool `json:"isTarget,omitempty"`
|
||||
}
|
||||
|
||||
func NewService(ptype string, serviceName string, port *DiscoveryPort) *DiscoveryService {
|
||||
|
Loading…
x
Reference in New Issue
Block a user