ing
This commit is contained in:
parent
e162463f3c
commit
9bc4c88c22
|
@ -12,8 +12,8 @@ type DiscoveryService interface {
|
||||||
DiscoverService(port *discoveryM.Port, dz *discoveryM.DiscoveryService) error
|
DiscoverService(port *discoveryM.Port, dz *discoveryM.DiscoveryService) error
|
||||||
|
|
||||||
// use by discovery
|
// use by discovery
|
||||||
DiscoveredZone(zone *discoveryM.Zone)
|
DiscoveredZone(zone *discoveryM.Zone) error
|
||||||
DiscoveredHost(host *discoveryM.Host)
|
DiscoveredHost(host *discoveryM.Host) error
|
||||||
DiscoveredPort(port *discoveryM.Port)
|
DiscoveredPort(port *discoveryM.Port) error
|
||||||
DiscoveredService(service *discoveryM.Service)
|
DiscoveredService(service *discoveryM.Service) error
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type CrawlerService interface {
|
type CrawlerService interface {
|
||||||
Install()
|
Install() error
|
||||||
Uninstall()
|
Uninstall() error
|
||||||
Update()
|
Update() error
|
||||||
|
|
||||||
Authenticate(crawler *configM.Crawler, target *configM.Target) (bool, error)
|
Authenticate(crawler *configM.Crawler, target *configM.Target) error
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package probe
|
package probe
|
||||||
|
|
||||||
type LogService interface {
|
type LogService interface {
|
||||||
Send()
|
Send() error
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package probe
|
package probe
|
||||||
|
|
||||||
type ProbeService interface {
|
type ProbeService interface {
|
||||||
Update()
|
Start() error
|
||||||
|
Stop() error
|
||||||
|
|
||||||
|
Update() error
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type SensorService interface {
|
type SensorService interface {
|
||||||
Start(id int64) (bool, error)
|
Start(id int64) error
|
||||||
Stop(id int64) (bool, error)
|
Stop(id int64) error
|
||||||
Add(config *configM.Config) (bool, error)
|
Add(config *configM.Config) error
|
||||||
Remove(id int64) (bool, error)
|
Remove(id int64) error
|
||||||
Update(id int64) (bool, error)
|
Update(id int64) error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user