ing
This commit is contained in:
parent
fd618adec1
commit
d178d0dc45
|
@ -1,10 +1,10 @@
|
|||
package discovery
|
||||
|
||||
type DiscoveryHost struct {
|
||||
type DiscoverHost struct {
|
||||
FirstScanRange string `json:"firstScanRange,omitempty"`
|
||||
LastScanRange string `json:"lastScanRange,omitempty"`
|
||||
ExcludeHosts []string `json:"excludeHosts,omitempty"`
|
||||
IncludeHosts []string `json:"includeHosts,omitempty"`
|
||||
|
||||
DiscoveryPort *DiscoveryPort `json:"discoveryPort,omitempty"`
|
||||
DiscoverPort *DiscoverPort `json:"discoverPort,omitempty"`
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
package discovery
|
||||
|
||||
type DiscoveryPort struct {
|
||||
type DiscoverPort struct {
|
||||
FirstScanRange int `json:"firstScanRange,omitempty"`
|
||||
LastScanRange int `json:"lastScanRange,omitempty"`
|
||||
ExcludePorts []int `json:"excludePorts,omitempty"`
|
||||
|
@ -8,10 +8,10 @@ type DiscoveryPort struct {
|
|||
IncludeTCP bool `json:"includeTCP,omitempty"`
|
||||
IncludeUDP bool `json:"includeUDP,omitempty"`
|
||||
|
||||
DiscoveryService *DiscoveryService `json:"discoveryService,omitempty"`
|
||||
DiscoverService *DiscoverService `json:"discoverService,omitempty"`
|
||||
}
|
||||
|
||||
func (dp *DiscoveryPort) Contains(port int) bool {
|
||||
func (dp *DiscoverPort) Contains(port int) bool {
|
||||
if dp.FirstScanRange > port {
|
||||
return false
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
package discovery
|
||||
|
||||
type DiscoveryService struct {
|
||||
type DiscoverService struct {
|
||||
IncludeServices []string `json:"includeServices,omitempty"`
|
||||
}
|
7
model/discovery/DiscoverZone.go
Normal file
7
model/discovery/DiscoverZone.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package discovery
|
||||
|
||||
type DiscoverZone struct {
|
||||
ExcludePatterns []string `json:"excludePatterns,omitempty"`
|
||||
|
||||
DiscoverHost *DiscoverHost `json:"discoverHost,omitempty"`
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
package discovery
|
||||
|
||||
type DiscoveryZone struct {
|
||||
ExcludePatterns []string `json:"excludePatterns,omitempty"`
|
||||
|
||||
DiscoveryHost *DiscoveryHost `json:"discoveryHost,omitempty"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user