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
|
||||
|
||||
// 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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package probe
|
||||
|
||||
type LogService interface {
|
||||
Send()
|
||||
Send() error
|
||||
}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
package probe
|
||||
|
||||
type ProbeService interface {
|
||||
Update()
|
||||
Start() error
|
||||
Stop() error
|
||||
|
||||
Update() error
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user