44 lines
1006 B
Go
44 lines
1006 B
Go
package model
|
|
|
|
type DiscoveryZone struct {
|
|
ExcludePatterns []string `json:"excludePatterns"`
|
|
|
|
DiscoveryHost *DiscoveryHost `json:"discoveryHost"`
|
|
}
|
|
|
|
type DiscoveryHost struct {
|
|
Zone Zone `json:"zone"`
|
|
|
|
FirstScanRange string `json:"firstScanRange"`
|
|
LastScanRange string `json:"lastScanRange"`
|
|
ExcludeHosts []string `json:"excludeHosts"`
|
|
|
|
DiscoveryPort *DiscoveryPort `json:"discoveryPort"`
|
|
}
|
|
|
|
type DiscoveryPort struct {
|
|
Host Host `json:"host"`
|
|
|
|
FirstScanRange int `json:"firstScanRange"`
|
|
LastScanRange int `json:"lastScanRange"`
|
|
ExcludePorts []int `json:"excludePorts"`
|
|
|
|
DiscoveryService *DiscoveryService `json:"discoveryService"`
|
|
}
|
|
|
|
type DiscoveryService struct {
|
|
Port Port `json:"port"`
|
|
|
|
IncludeServices []string `json:"includeServices"`
|
|
}
|
|
|
|
/*
|
|
Dzone --> zone --> Dhost --> host --> Dport --> port --> Dservice --> service
|
|
|
|
zone --> Dhost --> host --> Dport --> port --> Dservice --> service
|
|
|
|
host --> Dport --> port --> Dservice --> service
|
|
|
|
port --> Dservice --> service
|
|
*/
|