You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/11/30 02:53:03 UTC

[GitHub] [servicecomb-service-center] AngLi2 commented on a change in pull request #766: [SCD-2133] governance northbound Interface / abstract access layer

AngLi2 commented on a change in pull request #766:
URL: https://github.com/apache/servicecomb-service-center/pull/766#discussion_r532321439



##########
File path: server/service/gov/kie/kie_distributor.go
##########
@@ -0,0 +1,202 @@
+package kie
+
+import (
+	"context"
+	"encoding/json"
+	"fmt"
+	"github.com/apache/servicecomb-service-center/pkg/gov"
+	"github.com/apache/servicecomb-service-center/server/config"
+	svc "github.com/apache/servicecomb-service-center/server/service/gov"
+	"github.com/ghodss/yaml"
+	"github.com/go-chassis/kie-client"
+	"log"
+	"strings"
+)
+
+type Distributor struct {
+	lbPolicies map[string]*gov.LoadBalancer
+	name       string
+	client     *kie.Client
+}
+
+const PREFIX = "servicecomb."

Review comment:
       多个 const 建议合并,
   const(
   xxx
   xxx
   )




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org