AlexStocks commented on a change in pull request #208:
URL: https://github.com/apache/dubbo-go-samples/pull/208#discussion_r696202569
##########
File path: configcenter/apollo/README.md
##########
@@ -0,0 +1,55 @@
+# Apollo config center example
+
+## Instructions
+
+### go-server start
+1. Create new apollo server namespace for yaml format
+2. Add provider config content
+```yaml
+dubbo:
+ application:
+ name: "demo-server"
+ version: "2.0"
+ registries:
+ "demoZK":
+ protocol: "zookeeper"
+ timeout: "3s"
+ address: "127.0.0.1:2181"
+ protocols:
+ "triple":
+ name: "tri"
+ port: 20000
+ provider:
+ registry:
+ - demoZK
+ services:
+ "greeterImpl":
+ protocol: "triple"
+ interface: "com.apache.dubbo.sample.basic.IGreeter" # must be
compatible with grpc or dubbo-java
+```
+3. Start provider server
+
+### go-client start
+1. Create new apollo client namespace for yaml format
+2. Add client config content
+```yaml
Review comment:
在上面加上空行
##########
File path: configcenter/apollo/README.md
##########
@@ -0,0 +1,55 @@
+# Apollo config center example
+
+## Instructions
+
+### go-server start
+1. Create new apollo server namespace for yaml format
+2. Add provider config content
+```yaml
+dubbo:
+ application:
+ name: "demo-server"
+ version: "2.0"
+ registries:
+ "demoZK":
+ protocol: "zookeeper"
+ timeout: "3s"
+ address: "127.0.0.1:2181"
+ protocols:
+ "triple":
+ name: "tri"
+ port: 20000
+ provider:
+ registry:
+ - demoZK
+ services:
+ "greeterImpl":
+ protocol: "triple"
+ interface: "com.apache.dubbo.sample.basic.IGreeter" # must be
compatible with grpc or dubbo-java
+```
+3. Start provider server
+
+### go-client start
Review comment:
在下面加上空行
##########
File path: configcenter/apollo/README.md
##########
@@ -0,0 +1,55 @@
+# Apollo config center example
+
+## Instructions
+
+### go-server start
+1. Create new apollo server namespace for yaml format
+2. Add provider config content
+```yaml
+dubbo:
+ application:
+ name: "demo-server"
+ version: "2.0"
+ registries:
+ "demoZK":
+ protocol: "zookeeper"
+ timeout: "3s"
+ address: "127.0.0.1:2181"
+ protocols:
+ "triple":
+ name: "tri"
+ port: 20000
+ provider:
+ registry:
+ - demoZK
+ services:
+ "greeterImpl":
+ protocol: "triple"
+ interface: "com.apache.dubbo.sample.basic.IGreeter" # must be
compatible with grpc or dubbo-java
+```
+3. Start provider server
+
+### go-client start
+1. Create new apollo client namespace for yaml format
+2. Add client config content
+```yaml
+dubbo:
+ registries:
+ "demoZK":
+ protocol: "zookeeper"
+ timeout: "3s"
+ address: "127.0.0.1:2181"
+ consumer:
+ registry:
+ - demoZK
+ references:
+ "greeterImpl":
+ protocol: "tri"
+ interface: "com.apache.dubbo.sample.basic.IGreeter" # must be
compatible with grpc or dubbo-java
+```
+3. Start provider server
Review comment:
在上面加上空行
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]