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

View File

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

View File

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

View File

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

View File

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