2018-04-26 07:37:59 +00:00
|
|
|
package probe
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.loafle.net/overflow/commons-go/core/util"
|
|
|
|
"git.loafle.net/overflow/commons-go/model/discovery"
|
|
|
|
)
|
|
|
|
|
|
|
|
type DiscoveryService interface {
|
|
|
|
// By Central
|
2018-04-27 16:04:04 +00:00
|
|
|
DiscoverZone(requesterID string, dz *discovery.DiscoverZone) error
|
|
|
|
DiscoverHost(requesterID string, zone *discovery.Zone, dh *discovery.DiscoverHost) error
|
|
|
|
DiscoverPort(requesterID string, host *discovery.Host, dp *discovery.DiscoverPort) error
|
|
|
|
DiscoverService(requesterID string, port *discovery.Port, dService *discovery.DiscoverService) error
|
2018-04-26 07:37:59 +00:00
|
|
|
// By Container
|
|
|
|
DiscoveryStart(requesterID string, t *util.Timestamp) error
|
|
|
|
DiscoveryStop(requesterID string, t *util.Timestamp) error
|
|
|
|
DiscoveredZone(requesterID string, zone *discovery.Zone) error
|
|
|
|
DiscoveredHost(requesterID string, host *discovery.Host) error
|
|
|
|
DiscoveredPort(requesterID string, port *discovery.Port) error
|
|
|
|
DiscoveredService(requesterID string, service *discovery.Service) error
|
|
|
|
}
|