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"`
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) {

View File

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

View File

@ -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 {