diff --git a/modules/discovery/service/probe/DiscoveryService.go b/modules/discovery/service/probe/DiscoveryService.go index 1f5ccc0..44476f2 100644 --- a/modules/discovery/service/probe/DiscoveryService.go +++ b/modules/discovery/service/probe/DiscoveryService.go @@ -12,8 +12,8 @@ type DiscoveryService interface { DiscoverService(port *discoveryM.Port, dz *discoveryM.DiscoveryService) error // use by discovery - DiscoveredZone(zone *discoveryM.Zone) - DiscoveredHost(host *discoveryM.Host) - DiscoveredPort(port *discoveryM.Port) - DiscoveredService(service *discoveryM.Service) + DiscoveredZone(zone *discoveryM.Zone) error + DiscoveredHost(host *discoveryM.Host) error + DiscoveredPort(port *discoveryM.Port) error + DiscoveredService(service *discoveryM.Service) error } diff --git a/modules/probe/service/probe/CrawlerService.go b/modules/probe/service/probe/CrawlerService.go index dfc7e61..ef9ce2a 100644 --- a/modules/probe/service/probe/CrawlerService.go +++ b/modules/probe/service/probe/CrawlerService.go @@ -5,9 +5,9 @@ import ( ) type CrawlerService interface { - Install() - Uninstall() - Update() + Install() error + Uninstall() error + Update() error - Authenticate(crawler *configM.Crawler, target *configM.Target) (bool, error) + Authenticate(crawler *configM.Crawler, target *configM.Target) error } diff --git a/modules/probe/service/probe/LogService.go b/modules/probe/service/probe/LogService.go index aa2efdb..cbaf489 100644 --- a/modules/probe/service/probe/LogService.go +++ b/modules/probe/service/probe/LogService.go @@ -1,5 +1,5 @@ package probe type LogService interface { - Send() + Send() error } diff --git a/modules/probe/service/probe/ProbeService.go b/modules/probe/service/probe/ProbeService.go index dae2e81..55e861a 100644 --- a/modules/probe/service/probe/ProbeService.go +++ b/modules/probe/service/probe/ProbeService.go @@ -1,5 +1,8 @@ package probe type ProbeService interface { - Update() + Start() error + Stop() error + + Update() error } diff --git a/modules/probe/service/probe/SensorService.go b/modules/probe/service/probe/SensorService.go index 026abe3..ed5ca35 100644 --- a/modules/probe/service/probe/SensorService.go +++ b/modules/probe/service/probe/SensorService.go @@ -5,9 +5,9 @@ import ( ) type SensorService interface { - Start(id int64) (bool, error) - Stop(id int64) (bool, error) - Add(config *configM.Config) (bool, error) - Remove(id int64) (bool, error) - Update(id int64) (bool, error) + Start(id int64) error + Stop(id int64) error + Add(config *configM.Config) error + Remove(id int64) error + Update(id int64) error }