This commit is contained in:
crusader 2018-04-28 01:04:04 +09:00
parent d178d0dc45
commit c1096ee410
2 changed files with 8 additions and 8 deletions

View File

@ -3,9 +3,9 @@ package discovery
import "git.loafle.net/overflow/commons-go/model/discovery"
type DiscoveryService interface {
DiscoverZone(requesterID string, dz *discovery.DiscoveryZone) error
DiscoverHost(requesterID string, zone *discovery.Zone, dh *discovery.DiscoveryHost) error
DiscoverPort(requesterID string, host *discovery.Host, dp *discovery.DiscoveryPort) error
DiscoverService(requesterID string, port *discovery.Port, ds *discovery.DiscoveryService) error
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, ds *discovery.DiscoverService) error
StopRequest(requesterID string) error
}

View File

@ -7,10 +7,10 @@ import (
type DiscoveryService interface {
// By Central
DiscoverZone(requesterID string, dz *discovery.DiscoveryZone) error
DiscoverHost(requesterID string, zone *discovery.Zone, dh *discovery.DiscoveryHost) error
DiscoverPort(requesterID string, host *discovery.Host, dp *discovery.DiscoveryPort) error
DiscoverService(requesterID string, port *discovery.Port, dService *discovery.DiscoveryService) error
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
// By Container
DiscoveryStart(requesterID string, t *util.Timestamp) error
DiscoveryStop(requesterID string, t *util.Timestamp) error