This commit is contained in:
crusader 2017-12-04 18:48:33 +09:00
parent e162463f3c
commit 9bc4c88c22
5 changed files with 18 additions and 15 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -1,5 +1,5 @@
package probe
type LogService interface {
Send()
Send() error
}

View File

@ -1,5 +1,8 @@
package probe
type ProbeService interface {
Update()
Start() error
Stop() error
Update() error
}

View File

@ -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
}