overflow_discovery/rpc/discovery_service.go

37 lines
695 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
}
2017-11-17 15:12:38 +00:00
func (ds *DiscoveryService) DiscoverHost(zone *model.Zone, dz *model.DiscoveryHost) error {
2017-11-15 11:29:22 +00:00
return nil
}
2017-11-17 15:12:38 +00:00
func (ds *DiscoveryService) DiscoverPort(host *model.Host, dz *model.DiscoveryPort) error {
2017-11-15 11:29:22 +00:00
return nil
}
2017-11-17 15:12:38 +00:00
func (ds *DiscoveryService) DiscoverService(port *model.Port, 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
}