added
os target
This commit is contained in:
parent
47a8fba9d1
commit
3d6037bd8d
@ -28,7 +28,7 @@ type DiscoveryHost struct {
|
||||
UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"`
|
||||
|
||||
Os string `json:"os,omitempty"`
|
||||
IsTarget bool `json:"isTarget,omitempty"`
|
||||
Target bool `json:"target,omitempty"`
|
||||
}
|
||||
|
||||
func (h *DiscoveryHost) SetPort(key string, value *DiscoveryPort) {
|
||||
|
@ -18,7 +18,7 @@ type DiscoveryPort struct {
|
||||
PortType string `json:"portType"`
|
||||
Number uint16 `json:"portNumber"`
|
||||
|
||||
IsTarget bool `json:"isTarget,omitempty"`
|
||||
Target bool `json:"target,omitempty"`
|
||||
}
|
||||
|
||||
type PortScanHistory struct {
|
||||
|
@ -12,7 +12,7 @@ type DiscoveryService struct {
|
||||
PortType string `json:"portType"` /*tls or normal*/
|
||||
ServiceName string `json:"serviceName"`
|
||||
|
||||
IsTarget bool `json:"isTarget,omitempty"`
|
||||
Target bool `json:"target,omitempty"`
|
||||
}
|
||||
|
||||
func NewService(ptype string, serviceName string, port *DiscoveryPort) *DiscoveryService {
|
||||
|
Loading…
x
Reference in New Issue
Block a user