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

View File

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