overflow_discovery/api/module/discovery/model/discovery.go

44 lines
1009 B
Go
Raw Normal View History

2017-11-15 10:38:42 +00:00
package model
type DiscoveryZone struct {
ExcludePatterns []string `json:"excludePatterns"`
DiscoveryHost *DiscoveryHost `json:"discoveryHost"`
}
type DiscoveryHost struct {
2017-11-15 10:44:56 +00:00
Zone *Zone `json:"zone"`
2017-11-15 10:38:42 +00:00
FirstScanRange string `json:"firstScanRange"`
LastScanRange string `json:"lastScanRange"`
ExcludeHosts []string `json:"excludeHosts"`
DiscoveryPort *DiscoveryPort `json:"discoveryPort"`
}
type DiscoveryPort struct {
2017-11-15 10:44:56 +00:00
Host *Host `json:"host"`
2017-11-15 10:38:42 +00:00
FirstScanRange int `json:"firstScanRange"`
LastScanRange int `json:"lastScanRange"`
ExcludePorts []int `json:"excludePorts"`
DiscoveryService *DiscoveryService `json:"discoveryService"`
}
type DiscoveryService struct {
2017-11-15 10:44:56 +00:00
Port *Port `json:"port"`
2017-11-15 10:38:42 +00:00
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
*/