os target
This commit is contained in:
snoop 2017-06-27 16:54:21 +09:00
parent 47a8fba9d1
commit 3d6037bd8d
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ type DiscoveryHost struct {
UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"` UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"`
Os string `json:"os,omitempty"` Os string `json:"os,omitempty"`
IsTarget bool `json:"isTarget,omitempty"` Target bool `json:"target,omitempty"`
} }
func (h *DiscoveryHost) SetPort(key string, value *DiscoveryPort) { func (h *DiscoveryHost) SetPort(key string, value *DiscoveryPort) {

View File

@ -18,7 +18,7 @@ type DiscoveryPort struct {
PortType string `json:"portType"` PortType string `json:"portType"`
Number uint16 `json:"portNumber"` Number uint16 `json:"portNumber"`
IsTarget bool `json:"isTarget,omitempty"` Target bool `json:"target,omitempty"`
} }
type PortScanHistory struct { type PortScanHistory struct {

View File

@ -12,7 +12,7 @@ type DiscoveryService struct {
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"` Target bool `json:"target,omitempty"`
} }
func NewService(ptype string, serviceName string, port *DiscoveryPort) *DiscoveryService { func NewService(ptype string, serviceName string, port *DiscoveryPort) *DiscoveryService {