overflow_discovery/rpc/discovery_service.go

37 lines
641 B
Go
Raw Normal View History

2017-10-27 06:01:09 +00:00
package rpc
2017-11-15 11:29:22 +00:00
import (
"git.loafle.net/overflow/overflow_discovery/api/module/discovery/model"
2017-11-15 12:09:38 +00:00
"git.loafle.net/overflow/overflow_discovery/discovery"
2017-11-15 11:29:22 +00:00
)
2017-10-27 06:01:09 +00:00
type DiscoveryService struct {
}
2017-11-15 11:29:22 +00:00
func (ds *DiscoveryService) DiscoverZone(dz *model.DiscoveryZone) error {
2017-11-15 12:09:38 +00:00
discovery.DiscoverZone(dz)
2017-11-15 11:29:22 +00:00
return nil
}
func (ds *DiscoveryService) DiscoverHost(dz *model.DiscoveryHost) error {
return nil
}
func (ds *DiscoveryService) DiscoverPort(dz *model.DiscoveryPort) error {
return nil
}
func (ds *DiscoveryService) DiscoverService(dz *model.DiscoveryService) error {
2017-10-27 06:01:09 +00:00
2017-11-15 10:38:42 +00:00
return nil
2017-11-02 06:43:42 +00:00
}
2017-11-15 10:38:42 +00:00
func (ds *DiscoveryService) Stop() error {
2017-11-02 06:43:42 +00:00
2017-11-15 10:38:42 +00:00
return nil
2017-10-27 06:01:09 +00:00
}