You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by zh...@apache.org on 2021/09/04 15:57:54 UTC

[dubbo-go-samples] 12/18: up:add nacos registry (#178)

This is an automated email from the ASF dual-hosted git repository.

zhaoyunxing pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git

commit 44cb1ee7a97ac1d2ad96b6d7b199c4cc9345c6b2
Author: 赵云兴 <23...@qq.com>
AuthorDate: Sat Jul 24 20:16:27 2021 +0800

    up:add nacos registry (#178)
---
 .run/registry/registry-nacos-client.run.xml | 15 +++++++++++++++
 .run/registry/registry-nacos-server.run.xml | 15 +++++++++++++++
 registry/nacos/go-client/conf/client.yml    |  1 +
 3 files changed, 31 insertions(+)

diff --git a/.run/registry/registry-nacos-client.run.xml b/.run/registry/registry-nacos-client.run.xml
new file mode 100644
index 0000000..094dec2
--- /dev/null
+++ b/.run/registry/registry-nacos-client.run.xml
@@ -0,0 +1,15 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="registry-nacos-client" type="GoApplicationRunConfiguration" factoryName="Go Application" folderName="registry">
+    <module name="dubbo-go-samples" />
+    <working_directory value="$PROJECT_DIR$" />
+    <envs>
+      <env name="APP_LOG_CONF_FILE" value="$PROJECT_DIR$/registry/nacos/go-client/conf/log.yml" />
+      <env name="CONF_CONSUMER_FILE_PATH" value="$PROJECT_DIR$/registry/nacos/go-client/conf/client.yml" />
+    </envs>
+    <kind value="PACKAGE" />
+    <package value="github.com/apache/dubbo-go-samples/registry/nacos/go-client/cmd" />
+    <directory value="$PROJECT_DIR$" />
+    <filePath value="$PROJECT_DIR$/registry/nacos/go-client/cmd/client.go" />
+    <method v="2" />
+  </configuration>
+</component>
\ No newline at end of file
diff --git a/.run/registry/registry-nacos-server.run.xml b/.run/registry/registry-nacos-server.run.xml
new file mode 100644
index 0000000..6a72568
--- /dev/null
+++ b/.run/registry/registry-nacos-server.run.xml
@@ -0,0 +1,15 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="registry-nacos-server" type="GoApplicationRunConfiguration" factoryName="Go Application" folderName="registry">
+    <module name="dubbo-go-samples" />
+    <working_directory value="$PROJECT_DIR$" />
+    <envs>
+      <env name="CONF_PROVIDER_FILE_PATH" value="$PROJECT_DIR$/registry/nacos/go-server/conf/server.yml" />
+      <env name="APP_LOG_CONF_FILE" value="$PROJECT_DIR$/registry/nacos/go-server/conf/log.yml" />
+    </envs>
+    <kind value="PACKAGE" />
+    <package value="github.com/apache/dubbo-go-samples/registry/nacos/go-server/cmd" />
+    <directory value="$PROJECT_DIR$" />
+    <filePath value="$PROJECT_DIR$/registry/nacos/go-server/cmd/server.go" />
+    <method v="2" />
+  </configuration>
+</component>
\ No newline at end of file
diff --git a/registry/nacos/go-client/conf/client.yml b/registry/nacos/go-client/conf/client.yml
index 5936848..5e61240 100644
--- a/registry/nacos/go-client/conf/client.yml
+++ b/registry/nacos/go-client/conf/client.yml
@@ -31,6 +31,7 @@ references:
     methods:
       - name: "GetUser"
         retries: 3
+        timeout: 10s
 
 # protocol config
 protocol_conf: