summaryrefslogtreecommitdiffstats
path: root/src/rsync/pkg/grpc/register.go
diff options
context:
space:
mode:
authorEric Multanen <eric.w.multanen@intel.com>2020-05-27 16:20:17 -0700
committerEric Multanen <eric.w.multanen@intel.com>2020-05-28 12:06:58 -0700
commit9cfeb80dc920b213ea70fdfd2463f6746fb4e2f9 (patch)
tree7cfd95d943820132dcf61031656f8d5153aab4ac /src/rsync/pkg/grpc/register.go
parentef27eb4d63f1cb91de2dbc166f599043aca2609e (diff)
Update go.mod files of services to use local code
Change go.mod files to replace usage of services in this repo with local code instead of upstream builds. Fix a couple resulting issues. Issue-ID: MULTICLOUD-1077 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com> Change-Id: I597c7bf98beac3fcee9e37699966cbe839335bf2
Diffstat (limited to 'src/rsync/pkg/grpc/register.go')
-rw-r--r--src/rsync/pkg/grpc/register.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/rsync/pkg/grpc/register.go b/src/rsync/pkg/grpc/register.go
index 4755256f..fb462505 100644
--- a/src/rsync/pkg/grpc/register.go
+++ b/src/rsync/pkg/grpc/register.go
@@ -19,7 +19,8 @@ import (
"strings"
log "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/logutils"
- module "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module"
+ controller "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module/controller"
+ mtypes "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module/types"
)
const default_host = "localhost"
@@ -70,18 +71,18 @@ func RegisterGrpcServer(host string, port int) error {
})
}
- client := module.NewControllerClient()
+ client := controller.NewControllerClient()
// Create or update the controller entry
- controller := module.Controller{
- Metadata: module.Metadata{
+ controller := controller.Controller{
+ Metadata: mtypes.Metadata{
Name: serviceName,
},
- Spec: module.ControllerSpec{
+ Spec: controller.ControllerSpec{
Host: host,
Port: port,
- Type: module.CONTROLLER_TYPE_ACTION,
- Priority: module.MinControllerPriority,
+ Type: controller.CONTROLLER_TYPE_ACTION,
+ Priority: controller.MinControllerPriority,
},
}
_, err := client.CreateController(controller, true)