overflow_discovery/service/DiscoveryService.go

46 lines
1.0 KiB
Go
Raw Normal View History

2017-12-04 09:37:39 +00:00
package service
import (
2018-03-16 07:46:31 +00:00
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
cdr "git.loafle.net/commons_go/di/registry"
2017-12-04 09:37:39 +00:00
discoveryM "git.loafle.net/overflow/overflow_commons_go/modules/discovery/model"
"git.loafle.net/overflow/overflow_discovery/discovery"
)
2018-03-16 07:46:31 +00:00
func init() {
cdr.RegisterType(reflect.TypeOf((*DiscoveryService)(nil)))
}
2017-12-04 09:37:39 +00:00
type DiscoveryService struct {
2018-03-16 07:46:31 +00:00
cda.TypeAnnotation `annotation:"@overFlow:Service()"`
2017-12-04 09:37:39 +00:00
}
2018-03-16 06:43:19 +00:00
func (ds *DiscoveryService) DiscoverZone(requesterID string, dz *discoveryM.DiscoveryZone) error {
2017-12-04 09:37:39 +00:00
2018-03-16 06:43:19 +00:00
discovery.DiscoverZone(requesterID, dz)
2017-12-04 09:37:39 +00:00
return nil
}
2018-03-16 06:43:19 +00:00
func (ds *DiscoveryService) DiscoverHost(requesterID string, zone *discoveryM.Zone, dz *discoveryM.DiscoveryHost) error {
2017-12-04 09:37:39 +00:00
return nil
}
2018-03-16 06:43:19 +00:00
func (ds *DiscoveryService) DiscoverPort(requesterID string, host *discoveryM.Host, dz *discoveryM.DiscoveryPort) error {
2017-12-04 09:37:39 +00:00
return nil
}
2018-03-16 06:43:19 +00:00
func (ds *DiscoveryService) DiscoverService(requesterID string, port *discoveryM.Port, dz *discoveryM.DiscoveryService) error {
2017-12-04 09:37:39 +00:00
return nil
}
func (ds *DiscoveryService) Stop() error {
return nil
}