You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by jo...@apache.org on 2020/10/22 15:08:41 UTC
[dubbo-go-samples] 03/21: delete project
This is an automated email from the ASF dual-hosted git repository.
joezou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
commit 8aeb78e545bd3c29a17a9f237ff343b6b89f5403
Author: Joe Zou <yi...@gmail.com>
AuthorDate: Wed Oct 14 11:04:53 2020 +0800
delete project
---
.github/workflows/golang-ci.yml | 26 -
.github/workflows/java-ci.yml | 24 -
.gitignore | 31 -
.images/edit_configuratios.png | Bin 185325 -> 0 bytes
.images/edit_env.png | Bin 189208 -> 0 bytes
.travis.yml | 10 -
LICENSE | 201 ----
README.md | 147 ---
async/README.md | 24 -
async/go-client/app/client.go | 123 ---
async/go-client/assembly/bin/load.sh | 203 ----
async/go-client/assembly/common/app.properties | 23 -
async/go-client/assembly/common/build.sh | 83 --
async/go-client/assembly/linux/dev.sh | 36 -
async/go-client/assembly/linux/release.sh | 35 -
async/go-client/assembly/linux/test.sh | 35 -
async/go-client/assembly/mac/dev.sh | 36 -
async/go-client/assembly/mac/release.sh | 34 -
async/go-client/assembly/mac/test.sh | 34 -
async/go-client/assembly/windows/dev.sh | 34 -
async/go-client/assembly/windows/release.sh | 34 -
async/go-client/assembly/windows/test.sh | 34 -
async/go-client/profiles/dev/client.yml | 59 -
async/go-client/profiles/dev/log.yml | 28 -
async/go-server/app/server.go | 78 --
async/go-server/app/user.go | 63 --
async/go-server/assembly/bin/load.sh | 151 ---
async/go-server/assembly/common/app.properties | 23 -
async/go-server/assembly/common/build.sh | 80 --
async/go-server/assembly/linux/dev.sh | 36 -
async/go-server/assembly/linux/release.sh | 36 -
async/go-server/assembly/linux/test.sh | 36 -
async/go-server/assembly/mac/dev.sh | 36 -
async/go-server/assembly/mac/release.sh | 36 -
async/go-server/assembly/mac/test.sh | 36 -
async/go-server/assembly/windows/dev.sh | 36 -
async/go-server/assembly/windows/release.sh | 36 -
async/go-server/assembly/windows/test.sh | 36 -
async/go-server/profiles/dev/log.yml | 28 -
async/go-server/profiles/dev/server.yml | 53 -
ci.sh | 13 -
configcenter/apollo/README.md | 38 -
configcenter/apollo/dubbo/go-client/app/client.go | 93 --
configcenter/apollo/dubbo/go-client/app/user.go | 54 -
.../apollo/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../dubbo/go-client/assembly/common/build.sh | 83 --
.../apollo/dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
.../apollo/dubbo/go-client/assembly/linux/test.sh | 35 -
.../apollo/dubbo/go-client/assembly/mac/dev.sh | 36 -
.../apollo/dubbo/go-client/assembly/mac/release.sh | 34 -
.../apollo/dubbo/go-client/assembly/mac/test.sh | 34 -
.../apollo/dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../dubbo/go-client/assembly/windows/test.sh | 34 -
.../apollo/dubbo/go-client/profiles/dev/client.yml | 66 --
.../dubbo/config/user-info-client/dubbo.properties | 4 -
.../apollo/dubbo/go-client/profiles/dev/log.yml | 28 -
configcenter/apollo/dubbo/go-server/app/server.go | 78 --
configcenter/apollo/dubbo/go-server/app/user.go | 63 --
.../apollo/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../dubbo/go-server/assembly/common/build.sh | 80 --
.../apollo/dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
.../apollo/dubbo/go-server/assembly/linux/test.sh | 36 -
.../apollo/dubbo/go-server/assembly/mac/dev.sh | 36 -
.../apollo/dubbo/go-server/assembly/mac/release.sh | 36 -
.../apollo/dubbo/go-server/assembly/mac/test.sh | 36 -
.../apollo/dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../dubbo/go-server/assembly/windows/test.sh | 36 -
.../dubbo/config/user-info-server/dubbo.properties | 4 -
.../apollo/dubbo/go-server/profiles/dev/log.yml | 28 -
.../apollo/dubbo/go-server/profiles/dev/server.yml | 59 -
configcenter/apollo/dubbo/java-client/build.sh | 21 -
configcenter/apollo/dubbo/java-client/pom.xml | 211 ----
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 61 --
.../java/com/ikurento/user/EmbeddedZooKeeper.java | 250 -----
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../src/main/java/com/ikurento/user/ZKTools.java | 88 --
.../src/main/resources/META-INF/app.properties | 1 -
.../resources/META-INF/spring/dubbo.consumer.xml | 34 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/log4j.properties | 19 -
configcenter/apollo/dubbo/java-server/build.sh | 20 -
configcenter/apollo/dubbo/java-server/pom.xml | 216 ----
.../apollo/dubbo/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 43 -
.../java/com/ikurento/user/EmbeddedZooKeeper.java | 250 -----
.../src/main/java/com/ikurento/user/Provider.java | 40 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../src/main/java/com/ikurento/user/ZKTools.java | 89 --
.../com/ikurento/user/impl/UserProviderImpl.java | 32 -
.../src/main/resources/META-INF/app.properties | 1 -
.../resources/META-INF/spring/dubbo.provider.xml | 32 -
.../src/main/resources/log4j.properties | 20 -
configcenter/nacos/README.md | 11 -
configcenter/nacos/dubbo/go-client/app/client.go | 93 --
configcenter/nacos/dubbo/go-client/app/user.go | 54 -
.../nacos/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../nacos/dubbo/go-client/assembly/common/build.sh | 83 --
.../nacos/dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
.../nacos/dubbo/go-client/assembly/linux/test.sh | 35 -
.../nacos/dubbo/go-client/assembly/mac/dev.sh | 36 -
.../nacos/dubbo/go-client/assembly/mac/release.sh | 34 -
.../nacos/dubbo/go-client/assembly/mac/test.sh | 34 -
.../nacos/dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../nacos/dubbo/go-client/assembly/windows/test.sh | 34 -
.../nacos/dubbo/go-client/profiles/dev/client.yml | 63 --
.../dubbo/config/user-info-client/dubbo.properties | 1 -
.../nacos/dubbo/go-client/profiles/dev/log.yml | 28 -
configcenter/nacos/dubbo/go-server/app/server.go | 78 --
configcenter/nacos/dubbo/go-server/app/user.go | 63 --
.../nacos/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../nacos/dubbo/go-server/assembly/common/build.sh | 80 --
.../nacos/dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
.../nacos/dubbo/go-server/assembly/linux/test.sh | 36 -
.../nacos/dubbo/go-server/assembly/mac/dev.sh | 36 -
.../nacos/dubbo/go-server/assembly/mac/release.sh | 36 -
.../nacos/dubbo/go-server/assembly/mac/test.sh | 36 -
.../nacos/dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../nacos/dubbo/go-server/assembly/windows/test.sh | 36 -
.../dubbo/config/user-info-server/dubbo.properties | 4 -
.../nacos/dubbo/go-server/profiles/dev/log.yml | 28 -
.../nacos/dubbo/go-server/profiles/dev/server.yml | 62 --
configcenter/zookeeper/README.md | 38 -
configcenter/zookeeper/docker/docker-compose.yaml | 8 -
.../zookeeper/dubbo/go-client/app/client.go | 93 --
configcenter/zookeeper/dubbo/go-client/app/user.go | 54 -
.../zookeeper/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../dubbo/go-client/assembly/common/build.sh | 83 --
.../dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
.../dubbo/go-client/assembly/linux/test.sh | 35 -
.../zookeeper/dubbo/go-client/assembly/mac/dev.sh | 36 -
.../dubbo/go-client/assembly/mac/release.sh | 34 -
.../zookeeper/dubbo/go-client/assembly/mac/test.sh | 34 -
.../dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../dubbo/go-client/assembly/windows/test.sh | 34 -
.../dubbo/go-client/profiles/dev/client.yml | 36 -
.../dubbo/config/user-info-client/dubbo.properties | 1 -
.../zookeeper/dubbo/go-client/profiles/dev/log.yml | 28 -
.../zookeeper/dubbo/go-server/app/server.go | 78 --
configcenter/zookeeper/dubbo/go-server/app/user.go | 63 --
.../zookeeper/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../dubbo/go-server/assembly/common/build.sh | 80 --
.../dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
.../dubbo/go-server/assembly/linux/test.sh | 36 -
.../zookeeper/dubbo/go-server/assembly/mac/dev.sh | 36 -
.../dubbo/go-server/assembly/mac/release.sh | 36 -
.../zookeeper/dubbo/go-server/assembly/mac/test.sh | 36 -
.../dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../dubbo/go-server/assembly/windows/test.sh | 36 -
.../dubbo/config/user-info-server/dubbo.properties | 4 -
.../zookeeper/dubbo/go-server/profiles/dev/log.yml | 28 -
.../dubbo/go-server/profiles/dev/server.yml | 41 -
configcenter/zookeeper/dubbo/java-client/build.sh | 21 -
configcenter/zookeeper/dubbo/java-client/pom.xml | 205 ----
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 63 --
.../java/com/ikurento/user/EmbeddedZooKeeper.java | 250 -----
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../src/main/java/com/ikurento/user/ZKTools.java | 88 --
.../resources/META-INF/spring/dubbo.consumer.xml | 34 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/log4j.properties | 19 -
configcenter/zookeeper/dubbo/java-server/build.sh | 20 -
configcenter/zookeeper/dubbo/java-server/pom.xml | 210 ----
.../zookeeper/dubbo/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 43 -
.../java/com/ikurento/user/EmbeddedZooKeeper.java | 250 -----
.../src/main/java/com/ikurento/user/Provider.java | 42 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../src/main/java/com/ikurento/user/ZKTools.java | 89 --
.../com/ikurento/user/impl/UserProviderImpl.java | 32 -
.../resources/META-INF/spring/dubbo.provider.xml | 32 -
.../src/main/resources/log4j.properties | 20 -
direct/README.md | 3 -
direct/dubbo/.travis.yml | 20 -
direct/dubbo/go-client/app/client.go | 64 --
direct/dubbo/go-client/app/user.go | 54 -
direct/dubbo/go-client/app/version.go | 22 -
direct/dubbo/go-client/assembly/bin/load.sh | 205 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
direct/dubbo/go-client/assembly/common/build.sh | 79 --
direct/dubbo/go-client/assembly/linux/dev.sh | 36 -
direct/dubbo/go-client/assembly/linux/release.sh | 35 -
direct/dubbo/go-client/assembly/linux/test.sh | 35 -
direct/dubbo/go-client/assembly/mac/dev.sh | 36 -
direct/dubbo/go-client/assembly/mac/release.sh | 34 -
direct/dubbo/go-client/assembly/mac/test.sh | 34 -
direct/dubbo/go-client/assembly/windows/dev.sh | 34 -
direct/dubbo/go-client/assembly/windows/release.sh | 34 -
direct/dubbo/go-client/assembly/windows/test.sh | 34 -
direct/dubbo/go-client/profiles/dev/client.yml | 51 -
direct/dubbo/go-client/profiles/dev/log.yml | 28 -
direct/dubbo/go-client/profiles/release/client.yml | 51 -
direct/dubbo/go-client/profiles/release/log.yml | 28 -
direct/dubbo/go-client/profiles/test/client.yml | 50 -
direct/dubbo/go-client/profiles/test/log.yml | 28 -
direct/dubbo/go-server/app/server.go | 79 --
direct/dubbo/go-server/app/user.go | 63 --
direct/dubbo/go-server/app/version.go | 22 -
direct/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
direct/dubbo/go-server/assembly/common/build.sh | 80 --
direct/dubbo/go-server/assembly/linux/dev.sh | 36 -
direct/dubbo/go-server/assembly/linux/release.sh | 36 -
direct/dubbo/go-server/assembly/linux/test.sh | 36 -
direct/dubbo/go-server/assembly/mac/dev.sh | 36 -
direct/dubbo/go-server/assembly/mac/release.sh | 36 -
direct/dubbo/go-server/assembly/mac/test.sh | 36 -
direct/dubbo/go-server/assembly/windows/dev.sh | 36 -
direct/dubbo/go-server/assembly/windows/release.sh | 36 -
direct/dubbo/go-server/assembly/windows/test.sh | 36 -
direct/dubbo/go-server/profiles/dev/log.yml | 28 -
direct/dubbo/go-server/profiles/dev/server.yml | 55 -
direct/dubbo/go-server/profiles/release/log.yml | 28 -
direct/dubbo/go-server/profiles/release/server.yml | 60 --
direct/dubbo/go-server/profiles/test/log.yml | 28 -
direct/dubbo/go-server/profiles/test/server.yml | 58 -
filter/custom_filter/dubbo/go-client/app/client.go | 92 --
filter/custom_filter/dubbo/go-client/app/user.go | 54 -
.../custom_filter/dubbo/go-client/app/version.go | 22 -
.../dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../dubbo/go-client/assembly/common/build.sh | 83 --
.../dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
.../dubbo/go-client/assembly/linux/test.sh | 35 -
.../dubbo/go-client/assembly/mac/dev.sh | 36 -
.../dubbo/go-client/assembly/mac/release.sh | 34 -
.../dubbo/go-client/assembly/mac/test.sh | 34 -
.../dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../dubbo/go-client/assembly/windows/test.sh | 34 -
.../dubbo/go-client/profiles/dev/client.yml | 61 --
.../dubbo/go-client/profiles/dev/log.yml | 28 -
.../dubbo/go-client/profiles/release/client.yml | 60 --
.../dubbo/go-client/profiles/release/log.yml | 28 -
.../dubbo/go-client/profiles/test/client.yml | 59 -
.../dubbo/go-client/profiles/test/log.yml | 28 -
.../dubbo/go-server/app/custom_filter.go | 90 --
filter/custom_filter/dubbo/go-server/app/server.go | 82 --
filter/custom_filter/dubbo/go-server/app/user.go | 63 --
.../custom_filter/dubbo/go-server/app/version.go | 22 -
.../dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../dubbo/go-server/assembly/common/build.sh | 80 --
.../dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
.../dubbo/go-server/assembly/linux/test.sh | 36 -
.../dubbo/go-server/assembly/mac/dev.sh | 36 -
.../dubbo/go-server/assembly/mac/release.sh | 36 -
.../dubbo/go-server/assembly/mac/test.sh | 36 -
.../dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../dubbo/go-server/assembly/windows/test.sh | 36 -
.../dubbo/go-server/profiles/dev/log.yml | 28 -
.../dubbo/go-server/profiles/dev/server.yml | 58 -
.../dubbo/go-server/profiles/release/log.yml | 28 -
.../dubbo/go-server/profiles/release/server.yml | 63 --
.../dubbo/go-server/profiles/test/log.yml | 28 -
.../dubbo/go-server/profiles/test/server.yml | 63 --
filter/tpslimit/dubbo/go-client/app/client.go | 92 --
filter/tpslimit/dubbo/go-client/app/user.go | 54 -
filter/tpslimit/dubbo/go-client/app/version.go | 22 -
.../tpslimit/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../dubbo/go-client/assembly/common/build.sh | 83 --
.../tpslimit/dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
.../dubbo/go-client/assembly/linux/test.sh | 35 -
.../tpslimit/dubbo/go-client/assembly/mac/dev.sh | 36 -
.../dubbo/go-client/assembly/mac/release.sh | 34 -
.../tpslimit/dubbo/go-client/assembly/mac/test.sh | 34 -
.../dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../dubbo/go-client/assembly/windows/test.sh | 34 -
.../dubbo/go-client/profiles/dev/client.yml | 61 --
.../tpslimit/dubbo/go-client/profiles/dev/log.yml | 28 -
.../dubbo/go-client/profiles/release/client.yml | 60 --
.../dubbo/go-client/profiles/release/log.yml | 28 -
.../dubbo/go-client/profiles/test/client.yml | 59 -
.../tpslimit/dubbo/go-client/profiles/test/log.yml | 28 -
.../default_value_rejected_execution_handler.go | 107 --
.../go-server/app/random_tps_limit_strategy.go | 71 --
filter/tpslimit/dubbo/go-server/app/server.go | 79 --
filter/tpslimit/dubbo/go-server/app/user.go | 63 --
filter/tpslimit/dubbo/go-server/app/version.go | 22 -
.../tpslimit/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../dubbo/go-server/assembly/common/build.sh | 80 --
.../tpslimit/dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
.../dubbo/go-server/assembly/linux/test.sh | 36 -
.../tpslimit/dubbo/go-server/assembly/mac/dev.sh | 36 -
.../dubbo/go-server/assembly/mac/release.sh | 36 -
.../tpslimit/dubbo/go-server/assembly/mac/test.sh | 36 -
.../dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../dubbo/go-server/assembly/windows/test.sh | 36 -
.../tpslimit/dubbo/go-server/profiles/dev/log.yml | 28 -
.../dubbo/go-server/profiles/dev/server.yml | 61 --
.../dubbo/go-server/profiles/release/log.yml | 28 -
.../dubbo/go-server/profiles/release/server.yml | 66 --
.../tpslimit/dubbo/go-server/profiles/test/log.yml | 28 -
.../dubbo/go-server/profiles/test/server.yml | 66 --
general/dubbo/go-client/app/client.go | 317 ------
general/dubbo/go-client/app/user.go | 147 ---
general/dubbo/go-client/app/version.go | 22 -
general/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
general/dubbo/go-client/assembly/common/build.sh | 83 --
general/dubbo/go-client/assembly/linux/dev.sh | 36 -
general/dubbo/go-client/assembly/linux/release.sh | 35 -
general/dubbo/go-client/assembly/linux/test.sh | 35 -
general/dubbo/go-client/assembly/mac/dev.sh | 36 -
general/dubbo/go-client/assembly/mac/release.sh | 34 -
general/dubbo/go-client/assembly/mac/test.sh | 34 -
general/dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
general/dubbo/go-client/assembly/windows/test.sh | 34 -
general/dubbo/go-client/profiles/dev/client.yml | 85 --
general/dubbo/go-client/profiles/dev/log.yml | 28 -
.../dubbo/go-client/profiles/release/client.yml | 83 --
general/dubbo/go-client/profiles/release/log.yml | 28 -
general/dubbo/go-client/profiles/test/client.yml | 83 --
general/dubbo/go-client/profiles/test/log.yml | 28 -
general/dubbo/go-server/app/server.go | 84 --
general/dubbo/go-server/app/user.go | 109 --
general/dubbo/go-server/app/user_provider.go | 128 ---
general/dubbo/go-server/app/user_provider1.go | 109 --
general/dubbo/go-server/app/user_provider2.go | 118 --
general/dubbo/go-server/app/version.go | 22 -
general/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
general/dubbo/go-server/assembly/common/build.sh | 82 --
general/dubbo/go-server/assembly/linux/dev.sh | 36 -
general/dubbo/go-server/assembly/linux/release.sh | 36 -
general/dubbo/go-server/assembly/linux/test.sh | 36 -
general/dubbo/go-server/assembly/mac/dev.sh | 36 -
general/dubbo/go-server/assembly/mac/release.sh | 36 -
general/dubbo/go-server/assembly/mac/test.sh | 36 -
general/dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
general/dubbo/go-server/assembly/windows/test.sh | 36 -
general/dubbo/go-server/profiles/dev/log.yml | 28 -
general/dubbo/go-server/profiles/dev/server.yml | 94 --
general/dubbo/go-server/profiles/release/log.yml | 28 -
.../dubbo/go-server/profiles/release/server.yml | 91 --
general/dubbo/go-server/profiles/test/log.yml | 28 -
general/dubbo/go-server/profiles/test/server.yml | 91 --
general/dubbo/java-client/build.sh | 21 -
general/dubbo/java-client/pom.xml | 230 ----
.../java-client/src/main/assembly/assembly.xml | 39 -
.../src/main/assembly/conf/dubbo.properties | 13 -
.../src/main/assembly/conf/log4j.properties | 19 -
.../src/main/java/com/ikurento/user/Consumer.java | 227 ----
.../src/main/java/com/ikurento/user/Gender.java | 23 -
.../src/main/java/com/ikurento/user/User.java | 83 --
.../main/java/com/ikurento/user/UserProvider.java | 27 -
.../resources/META-INF/spring/dubbo.consumer.xml | 42 -
.../src/main/resources/META-INF/spring/service.xml | 38 -
.../src/main/resources/log4j.properties | 19 -
general/dubbo/java-server/build.sh | 20 -
general/dubbo/java-server/pom.xml | 196 ----
general/dubbo/java-server/script/debug.sh | 22 -
.../java-server/src/main/assembly/assembly.xml | 45 -
.../src/main/assembly/conf/dubbo.properties | 14 -
.../src/main/assembly/conf/log4j.properties | 20 -
.../src/main/java/com/ikurento/user/Gender.java | 23 -
.../src/main/java/com/ikurento/user/Provider.java | 34 -
.../src/main/java/com/ikurento/user/Response.java | 92 --
.../src/main/java/com/ikurento/user/User.java | 95 --
.../main/java/com/ikurento/user/UserProvider.java | 50 -
.../com/ikurento/user/UserProviderAnotherImpl.java | 143 ---
.../java/com/ikurento/user/UserProviderImpl.java | 119 --
.../resources/META-INF/spring/dubbo.provider.xml | 39 -
.../src/main/resources/log4j.properties | 20 -
general/grpc/go-client/app/Makefile | 2 -
general/grpc/go-client/app/client.go | 92 --
general/grpc/go-client/app/hello.go | 48 -
general/grpc/go-client/app/helloworld.pb.go | 284 -----
general/grpc/go-client/app/helloworld.proto | 37 -
general/grpc/go-client/app/version.go | 22 -
general/grpc/go-client/assembly/bin/load.sh | 203 ----
.../grpc/go-client/assembly/common/app.properties | 23 -
general/grpc/go-client/assembly/common/build.sh | 83 --
general/grpc/go-client/assembly/linux/dev.sh | 36 -
general/grpc/go-client/assembly/linux/release.sh | 35 -
general/grpc/go-client/assembly/linux/test.sh | 35 -
general/grpc/go-client/assembly/mac/dev.sh | 36 -
general/grpc/go-client/assembly/mac/release.sh | 34 -
general/grpc/go-client/assembly/mac/test.sh | 34 -
general/grpc/go-client/assembly/windows/dev.sh | 34 -
general/grpc/go-client/assembly/windows/release.sh | 34 -
general/grpc/go-client/assembly/windows/test.sh | 34 -
general/grpc/go-client/profiles/dev/client.yml | 61 --
general/grpc/go-client/profiles/dev/log.yml | 28 -
general/grpc/go-client/profiles/release/client.yml | 61 --
general/grpc/go-client/profiles/release/log.yml | 28 -
general/grpc/go-client/profiles/test/client.yml | 63 --
general/grpc/go-client/profiles/test/log.yml | 28 -
general/grpc/go-server/app/greeter.go | 50 -
general/grpc/go-server/app/helloworld.pb.go | 284 -----
general/grpc/go-server/app/helloworld.proto | 37 -
general/grpc/go-server/app/server.go | 75 --
general/grpc/go-server/app/version.go | 22 -
general/grpc/go-server/assembly/bin/load.sh | 151 ---
.../grpc/go-server/assembly/common/app.properties | 23 -
general/grpc/go-server/assembly/common/build.sh | 80 --
general/grpc/go-server/assembly/linux/dev.sh | 36 -
general/grpc/go-server/assembly/linux/release.sh | 36 -
general/grpc/go-server/assembly/linux/test.sh | 36 -
general/grpc/go-server/assembly/mac/dev.sh | 36 -
general/grpc/go-server/assembly/mac/release.sh | 36 -
general/grpc/go-server/assembly/mac/test.sh | 36 -
general/grpc/go-server/assembly/windows/dev.sh | 36 -
general/grpc/go-server/assembly/windows/release.sh | 36 -
general/grpc/go-server/assembly/windows/test.sh | 36 -
general/grpc/go-server/profiles/dev/log.yml | 28 -
general/grpc/go-server/profiles/dev/server.yml | 57 -
general/grpc/go-server/profiles/release/log.yml | 28 -
general/grpc/go-server/profiles/release/server.yml | 54 -
general/grpc/go-server/profiles/test/log.yml | 28 -
general/grpc/go-server/profiles/test/server.yml | 57 -
general/grpc/java-client/build.sh | 21 -
general/grpc/java-client/pom.xml | 247 -----
.../java-client/src/main/assembly/assembly.xml | 39 -
.../src/main/assembly/conf/dubbo.properties | 13 -
.../src/main/assembly/conf/log4j.properties | 19 -
.../src/main/java/com/ikurento/user/Consumer.java | 111 --
.../java-client/src/main/proto/UserService.proto | 56 -
.../resources/META-INF/spring/dubbo.consumer.xml | 43 -
.../src/main/resources/META-INF/spring/service.xml | 36 -
.../src/main/resources/log4j.properties | 19 -
general/grpc/java-server/build.sh | 20 -
general/grpc/java-server/pom.xml | 225 ----
general/grpc/java-server/script/debug.sh | 22 -
.../java-server/src/main/assembly/assembly.xml | 45 -
.../java-server/src/main/assembly/bin/start.bat | 44 -
.../java-server/src/main/assembly/bin/start.sh | 125 ---
.../src/main/assembly/conf/dubbo.properties | 14 -
.../src/main/assembly/conf/log4j.properties | 20 -
.../src/main/java/com/ikurento/user/Provider.java | 34 -
.../java/com/ikurento/user/UserProviderImpl.java | 70 --
.../java-server/src/main/proto/UserService.proto | 56 -
.../resources/META-INF/spring/dubbo.provider.xml | 39 -
.../src/main/resources/log4j.properties | 20 -
general/jsonrpc/go-client/app/client.go | 258 -----
general/jsonrpc/go-client/app/user.go | 97 --
general/jsonrpc/go-client/app/version.go | 22 -
general/jsonrpc/go-client/assembly/bin/load.sh | 203 ----
.../go-client/assembly/common/app.properties | 23 -
general/jsonrpc/go-client/assembly/common/build.sh | 83 --
general/jsonrpc/go-client/assembly/linux/dev.sh | 36 -
.../jsonrpc/go-client/assembly/linux/release.sh | 35 -
general/jsonrpc/go-client/assembly/linux/test.sh | 35 -
general/jsonrpc/go-client/assembly/mac/dev.sh | 36 -
general/jsonrpc/go-client/assembly/mac/release.sh | 34 -
general/jsonrpc/go-client/assembly/mac/test.sh | 34 -
general/jsonrpc/go-client/assembly/windows/dev.sh | 34 -
.../jsonrpc/go-client/assembly/windows/release.sh | 34 -
general/jsonrpc/go-client/assembly/windows/test.sh | 34 -
general/jsonrpc/go-client/profiles/dev/client.yml | 60 --
general/jsonrpc/go-client/profiles/dev/log.yml | 28 -
.../jsonrpc/go-client/profiles/release/client.yml | 60 --
general/jsonrpc/go-client/profiles/release/log.yml | 28 -
general/jsonrpc/go-client/profiles/test/client.yml | 60 --
general/jsonrpc/go-client/profiles/test/log.yml | 28 -
general/jsonrpc/go-server/app/server.go | 77 --
general/jsonrpc/go-server/app/user.go | 73 --
general/jsonrpc/go-server/app/user_provider.go | 102 --
general/jsonrpc/go-server/app/user_provider1.go | 87 --
general/jsonrpc/go-server/app/user_provider2.go | 97 --
general/jsonrpc/go-server/app/version.go | 22 -
general/jsonrpc/go-server/assembly/bin/load.sh | 151 ---
.../go-server/assembly/common/app.properties | 23 -
general/jsonrpc/go-server/assembly/common/build.sh | 80 --
general/jsonrpc/go-server/assembly/linux/dev.sh | 36 -
.../jsonrpc/go-server/assembly/linux/release.sh | 36 -
general/jsonrpc/go-server/assembly/linux/test.sh | 36 -
general/jsonrpc/go-server/assembly/mac/dev.sh | 36 -
general/jsonrpc/go-server/assembly/mac/release.sh | 36 -
general/jsonrpc/go-server/assembly/mac/test.sh | 36 -
general/jsonrpc/go-server/assembly/windows/dev.sh | 36 -
.../jsonrpc/go-server/assembly/windows/release.sh | 36 -
general/jsonrpc/go-server/assembly/windows/test.sh | 36 -
general/jsonrpc/go-server/profiles/dev/log.yml | 28 -
general/jsonrpc/go-server/profiles/dev/server.yml | 75 --
general/jsonrpc/go-server/profiles/release/log.yml | 28 -
.../jsonrpc/go-server/profiles/release/server.yml | 75 --
general/jsonrpc/go-server/profiles/test/log.yml | 28 -
general/jsonrpc/go-server/profiles/test/server.yml | 75 --
general/jsonrpc/java-client/build.sh | 21 -
general/jsonrpc/java-client/pom.xml | 230 ----
.../java-client/src/main/assembly/assembly.xml | 39 -
.../src/main/assembly/conf/dubbo.properties | 13 -
.../src/main/assembly/conf/log4j.properties | 19 -
.../src/main/java/com/ikurento/user/Consumer.java | 211 ----
.../src/main/java/com/ikurento/user/Gender.java | 23 -
.../src/main/java/com/ikurento/user/User.java | 83 --
.../main/java/com/ikurento/user/UserProvider.java | 25 -
.../resources/META-INF/spring/dubbo.consumer.xml | 44 -
.../src/main/resources/META-INF/spring/service.xml | 38 -
.../src/main/resources/dubbo.properties | 13 -
.../src/main/resources/log4j.properties | 19 -
general/jsonrpc/java-server/build.sh | 20 -
general/jsonrpc/java-server/pom.xml | 195 ----
general/jsonrpc/java-server/script/debug.sh | 22 -
.../java-server/src/main/assembly/assembly.xml | 45 -
.../src/main/assembly/conf/dubbo.properties | 14 -
.../src/main/assembly/conf/log4j.properties | 20 -
.../src/main/java/com/ikurento/user/Gender.java | 23 -
.../src/main/java/com/ikurento/user/Provider.java | 34 -
.../src/main/java/com/ikurento/user/Response.java | 92 --
.../src/main/java/com/ikurento/user/User.java | 95 --
.../main/java/com/ikurento/user/UserProvider.java | 46 -
.../com/ikurento/user/UserProviderAnotherImpl.java | 134 ---
.../java/com/ikurento/user/UserProviderImpl.java | 111 --
.../resources/META-INF/spring/dubbo.provider.xml | 39 -
.../src/main/resources/log4j.properties | 20 -
general/rest/go-client/app/client.go | 209 ----
general/rest/go-client/app/user.go | 97 --
general/rest/go-client/app/version.go | 22 -
general/rest/go-client/assembly/bin/load.sh | 203 ----
.../rest/go-client/assembly/common/app.properties | 23 -
general/rest/go-client/assembly/common/build.sh | 83 --
general/rest/go-client/assembly/linux/dev.sh | 36 -
general/rest/go-client/assembly/linux/release.sh | 35 -
general/rest/go-client/assembly/linux/test.sh | 35 -
general/rest/go-client/assembly/mac/dev.sh | 36 -
general/rest/go-client/assembly/mac/release.sh | 34 -
general/rest/go-client/assembly/mac/test.sh | 34 -
general/rest/go-client/assembly/windows/dev.sh | 34 -
general/rest/go-client/assembly/windows/release.sh | 34 -
general/rest/go-client/assembly/windows/test.sh | 34 -
general/rest/go-client/profiles/dev/client.yml | 113 --
general/rest/go-client/profiles/dev/log.yml | 28 -
general/rest/go-client/profiles/release/client.yml | 119 --
general/rest/go-client/profiles/release/log.yml | 28 -
general/rest/go-client/profiles/test/client.yml | 112 --
general/rest/go-client/profiles/test/log.yml | 28 -
general/rest/go-server/app/server.go | 90 --
general/rest/go-server/app/user.go | 73 --
general/rest/go-server/app/user_provider.go | 89 --
general/rest/go-server/app/user_provider1.go | 79 --
general/rest/go-server/app/user_provider2.go | 89 --
general/rest/go-server/app/version.go | 22 -
general/rest/go-server/assembly/bin/load.sh | 151 ---
.../rest/go-server/assembly/common/app.properties | 23 -
general/rest/go-server/assembly/common/build.sh | 80 --
general/rest/go-server/assembly/linux/dev.sh | 36 -
general/rest/go-server/assembly/linux/release.sh | 36 -
general/rest/go-server/assembly/linux/test.sh | 36 -
general/rest/go-server/assembly/mac/dev.sh | 36 -
general/rest/go-server/assembly/mac/release.sh | 36 -
general/rest/go-server/assembly/mac/test.sh | 36 -
general/rest/go-server/assembly/windows/dev.sh | 36 -
general/rest/go-server/assembly/windows/release.sh | 36 -
general/rest/go-server/assembly/windows/test.sh | 36 -
general/rest/go-server/profiles/dev/log.yml | 28 -
general/rest/go-server/profiles/dev/server.yml | 127 ---
general/rest/go-server/profiles/release/log.yml | 28 -
general/rest/go-server/profiles/release/server.yml | 128 ---
general/rest/go-server/profiles/test/log.yml | 28 -
general/rest/go-server/profiles/test/server.yml | 134 ---
generic/go-client/app/client.go | 133 ---
generic/go-client/app/user.go | 77 --
generic/go-client/assembly/bin/load.sh | 203 ----
generic/go-client/assembly/common/app.properties | 23 -
generic/go-client/assembly/common/build.sh | 83 --
generic/go-client/assembly/linux/dev.sh | 36 -
generic/go-client/assembly/linux/release.sh | 35 -
generic/go-client/assembly/linux/test.sh | 35 -
generic/go-client/assembly/mac/dev.sh | 36 -
generic/go-client/assembly/mac/release.sh | 34 -
generic/go-client/assembly/mac/test.sh | 34 -
generic/go-client/assembly/windows/dev.sh | 34 -
generic/go-client/assembly/windows/release.sh | 34 -
generic/go-client/assembly/windows/test.sh | 34 -
generic/go-client/profiles/dev/client.yml | 55 -
generic/go-client/profiles/dev/log.yml | 28 -
generic/go-client/profiles/release/client.yml | 55 -
generic/go-client/profiles/release/log.yml | 28 -
generic/go-client/profiles/test/client.yml | 55 -
generic/go-client/profiles/test/log.yml | 28 -
generic/go-server/app/server.go | 79 --
generic/go-server/app/user.go | 76 --
generic/go-server/app/version.go | 22 -
generic/go-server/assembly/bin/load.sh | 151 ---
generic/go-server/assembly/common/app.properties | 23 -
generic/go-server/assembly/common/build.sh | 80 --
generic/go-server/assembly/linux/dev.sh | 36 -
generic/go-server/assembly/linux/release.sh | 36 -
generic/go-server/assembly/linux/test.sh | 36 -
generic/go-server/assembly/mac/dev.sh | 36 -
generic/go-server/assembly/mac/release.sh | 36 -
generic/go-server/assembly/mac/test.sh | 36 -
generic/go-server/assembly/windows/dev.sh | 36 -
generic/go-server/assembly/windows/release.sh | 36 -
generic/go-server/assembly/windows/test.sh | 36 -
generic/go-server/profiles/dev/log.yml | 28 -
generic/go-server/profiles/dev/server.yml | 60 --
generic/go-server/profiles/release/log.yml | 28 -
generic/go-server/profiles/release/server.yml | 64 --
generic/go-server/profiles/test/log.yml | 28 -
generic/go-server/profiles/test/server.yml | 65 --
generic/java-client/build.sh | 21 -
generic/java-client/pom.xml | 80 --
.../src/main/java/com/ikurento/user/Consumer.java | 53 -
.../src/main/java/com/ikurento/user/User.java | 77 --
.../src/main/resources/log4j.properties | 20 -
generic/java-server/build.sh | 20 -
generic/java-server/pom.xml | 195 ----
generic/java-server/script/debug.sh | 23 -
generic/java-server/src/main/assembly/assembly.xml | 45 -
.../src/main/assembly/conf/dubbo.properties | 14 -
.../src/main/assembly/conf/log4j.properties | 20 -
.../src/main/java/com/ikurento/user/Gender.java | 23 -
.../src/main/java/com/ikurento/user/Provider.java | 33 -
.../src/main/java/com/ikurento/user/Response.java | 92 --
.../src/main/java/com/ikurento/user/User.java | 95 --
.../main/java/com/ikurento/user/UserProvider.java | 48 -
.../com/ikurento/user/UserProviderAnotherImpl.java | 137 ---
.../java/com/ikurento/user/UserProviderImpl.java | 115 --
.../resources/META-INF/spring/dubbo.provider.xml | 38 -
.../src/main/resources/log4j.properties | 20 -
go.mod | 20 -
go.sum | 1133 --------------------
helloworld/dubbo/.travis.yml | 24 -
helloworld/dubbo/go-client/app/client.go | 64 --
helloworld/dubbo/go-client/app/user.go | 54 -
helloworld/dubbo/go-client/app/version.go | 22 -
helloworld/dubbo/go-client/assembly.tar | Bin 40960 -> 0 bytes
helloworld/dubbo/go-client/assembly.zip | Bin 12137 -> 0 bytes
helloworld/dubbo/go-client/assembly/bin/load.sh | 205 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../dubbo/go-client/assembly/common/build.sh | 79 --
helloworld/dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
helloworld/dubbo/go-client/assembly/linux/test.sh | 35 -
helloworld/dubbo/go-client/assembly/mac/dev.sh | 36 -
helloworld/dubbo/go-client/assembly/mac/release.sh | 34 -
helloworld/dubbo/go-client/assembly/mac/test.sh | 34 -
helloworld/dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../dubbo/go-client/assembly/windows/test.sh | 34 -
helloworld/dubbo/go-client/profiles/dev/client.yml | 61 --
helloworld/dubbo/go-client/profiles/dev/log.yml | 28 -
.../dubbo/go-client/profiles/release/client.yml | 60 --
.../dubbo/go-client/profiles/release/log.yml | 28 -
.../dubbo/go-client/profiles/test/client.yml | 59 -
helloworld/dubbo/go-client/profiles/test/log.yml | 28 -
helloworld/dubbo/go-server/app/server.go | 79 --
helloworld/dubbo/go-server/app/user.go | 63 --
helloworld/dubbo/go-server/app/version.go | 22 -
helloworld/dubbo/go-server/assembly.tar | Bin 40960 -> 0 bytes
helloworld/dubbo/go-server/assembly.zip | Bin 11842 -> 0 bytes
helloworld/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../dubbo/go-server/assembly/common/build.sh | 80 --
helloworld/dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
helloworld/dubbo/go-server/assembly/linux/test.sh | 36 -
helloworld/dubbo/go-server/assembly/mac/dev.sh | 36 -
helloworld/dubbo/go-server/assembly/mac/release.sh | 36 -
helloworld/dubbo/go-server/assembly/mac/test.sh | 36 -
helloworld/dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../dubbo/go-server/assembly/windows/test.sh | 36 -
helloworld/dubbo/go-server/profiles/dev/log.yml | 28 -
helloworld/dubbo/go-server/profiles/dev/server.yml | 57 -
.../dubbo/go-server/profiles/release/log.yml | 28 -
.../dubbo/go-server/profiles/release/server.yml | 62 --
helloworld/dubbo/go-server/profiles/test/log.yml | 28 -
.../dubbo/go-server/profiles/test/server.yml | 62 --
helloworld/dubbo/java-client/build.sh | 21 -
helloworld/dubbo/java-client/pom.xml | 230 ----
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 60 --
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../resources/META-INF/spring/dubbo.consumer.xml | 37 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/dubbo.properties | 13 -
.../src/main/resources/log4j.properties | 19 -
helloworld/dubbo/java-server/build.sh | 20 -
helloworld/dubbo/java-server/pom.xml | 196 ----
helloworld/dubbo/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 44 -
.../src/main/java/com/ikurento/user/Provider.java | 33 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../java/com/ikurento/user/UserProviderImpl.java | 30 -
.../resources/META-INF/spring/dubbo.provider.xml | 33 -
.../src/main/resources/dubbo.properties | 14 -
.../src/main/resources/log4j.properties | 20 -
metric/dubbo/go-client/app/client.go | 91 --
metric/dubbo/go-client/app/user.go | 54 -
metric/dubbo/go-client/app/version.go | 22 -
metric/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
metric/dubbo/go-client/assembly/common/build.sh | 83 --
metric/dubbo/go-client/assembly/linux/dev.sh | 36 -
metric/dubbo/go-client/assembly/linux/release.sh | 35 -
metric/dubbo/go-client/assembly/linux/test.sh | 35 -
metric/dubbo/go-client/assembly/mac/dev.sh | 36 -
metric/dubbo/go-client/assembly/mac/release.sh | 34 -
metric/dubbo/go-client/assembly/mac/test.sh | 34 -
metric/dubbo/go-client/assembly/windows/dev.sh | 34 -
metric/dubbo/go-client/assembly/windows/release.sh | 34 -
metric/dubbo/go-client/assembly/windows/test.sh | 34 -
metric/dubbo/go-client/profiles/dev/client.yml | 64 --
metric/dubbo/go-client/profiles/dev/log.yml | 28 -
metric/dubbo/go-client/profiles/release/client.yml | 60 --
metric/dubbo/go-client/profiles/release/log.yml | 28 -
metric/dubbo/go-client/profiles/test/client.yml | 59 -
metric/dubbo/go-client/profiles/test/log.yml | 28 -
metric/dubbo/go-server/app/server.go | 92 --
metric/dubbo/go-server/app/user.go | 67 --
metric/dubbo/go-server/app/version.go | 22 -
metric/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
metric/dubbo/go-server/assembly/common/build.sh | 80 --
metric/dubbo/go-server/assembly/linux/dev.sh | 36 -
metric/dubbo/go-server/assembly/linux/release.sh | 36 -
metric/dubbo/go-server/assembly/linux/test.sh | 36 -
metric/dubbo/go-server/assembly/mac/dev.sh | 36 -
metric/dubbo/go-server/assembly/mac/release.sh | 36 -
metric/dubbo/go-server/assembly/mac/test.sh | 36 -
metric/dubbo/go-server/assembly/windows/dev.sh | 36 -
metric/dubbo/go-server/assembly/windows/release.sh | 36 -
metric/dubbo/go-server/assembly/windows/test.sh | 36 -
metric/dubbo/go-server/profiles/dev/log.yml | 28 -
metric/dubbo/go-server/profiles/dev/server.yml | 61 --
metric/dubbo/go-server/profiles/release/log.yml | 28 -
metric/dubbo/go-server/profiles/release/server.yml | 62 --
metric/dubbo/go-server/profiles/test/log.yml | 28 -
metric/dubbo/go-server/profiles/test/server.yml | 62 --
multi_registry/dubbo/go-client/app/client.go | 92 --
multi_registry/dubbo/go-client/app/user.go | 54 -
multi_registry/dubbo/go-client/app/version.go | 22 -
.../dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../dubbo/go-client/assembly/common/build.sh | 83 --
.../dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
.../dubbo/go-client/assembly/linux/test.sh | 35 -
multi_registry/dubbo/go-client/assembly/mac/dev.sh | 36 -
.../dubbo/go-client/assembly/mac/release.sh | 34 -
.../dubbo/go-client/assembly/mac/test.sh | 34 -
.../dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../dubbo/go-client/assembly/windows/test.sh | 34 -
.../dubbo/go-client/profiles/dev/client.yml | 65 --
.../dubbo/go-client/profiles/dev/log.yml | 28 -
multi_registry/dubbo/go-server/app/server.go | 79 --
multi_registry/dubbo/go-server/app/user.go | 63 --
multi_registry/dubbo/go-server/app/version.go | 22 -
.../dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../dubbo/go-server/assembly/common/build.sh | 80 --
.../dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
.../dubbo/go-server/assembly/linux/test.sh | 36 -
multi_registry/dubbo/go-server/assembly/mac/dev.sh | 36 -
.../dubbo/go-server/assembly/mac/release.sh | 36 -
.../dubbo/go-server/assembly/mac/test.sh | 36 -
.../dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../dubbo/go-server/assembly/windows/test.sh | 36 -
.../dubbo/go-server/profiles/dev/log.yml | 28 -
.../dubbo/go-server/profiles/dev/server.yml | 61 --
multi_registry/dubbo/java-client/build.sh | 21 -
multi_registry/dubbo/java-client/pom.xml | 230 ----
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 60 --
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../resources/META-INF/spring/dubbo.consumer.xml | 37 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/dubbo.properties | 13 -
.../src/main/resources/log4j.properties | 19 -
multi_registry/dubbo/java-server/build.sh | 20 -
multi_registry/dubbo/java-server/pom.xml | 196 ----
multi_registry/dubbo/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 44 -
.../src/main/java/com/ikurento/user/Provider.java | 33 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../java/com/ikurento/user/UserProviderImpl.java | 30 -
.../resources/META-INF/spring/dubbo.provider.xml | 33 -
.../src/main/resources/dubbo.properties | 14 -
.../src/main/resources/log4j.properties | 20 -
multi_registry/zone/dubbo/go-client/app/client.go | 114 --
multi_registry/zone/dubbo/go-client/app/user.go | 54 -
multi_registry/zone/dubbo/go-client/app/version.go | 22 -
.../zone/dubbo/go-client/profiles/dev/client.yml | 71 --
.../zone/dubbo/go-client/profiles/dev/log.yml | 29 -
multi_registry/zone/dubbo/go-server/app/server.go | 79 --
multi_registry/zone/dubbo/go-server/app/user.go | 64 --
multi_registry/zone/dubbo/go-server/app/version.go | 22 -
.../zone/dubbo/go-server/profiles/dev/log.yml | 29 -
.../dubbo/go-server/profiles/dev/server_hz.yml | 58 -
.../dubbo/go-server/profiles/dev/server_sh.yml | 58 -
registry/etcd/README.md | 141 ---
registry/etcd/go-client/app/client.go | 77 --
registry/etcd/go-client/app/user.go | 37 -
registry/etcd/go-client/app/version.go | 5 -
registry/etcd/go-client/assembly/bin/load.sh | 184 ----
.../etcd/go-client/assembly/common/app.properties | 6 -
registry/etcd/go-client/assembly/common/build.sh | 65 --
registry/etcd/go-client/assembly/mac/dev.sh | 17 -
registry/etcd/go-client/profiles/dev/client.yml | 60 --
registry/etcd/go-client/profiles/dev/log.yml | 28 -
registry/etcd/go-server/app/server.go | 64 --
registry/etcd/go-server/app/user.go | 46 -
registry/etcd/go-server/app/version.go | 5 -
registry/etcd/go-server/assembly/bin/load.sh | 132 ---
.../etcd/go-server/assembly/common/app.properties | 6 -
registry/etcd/go-server/assembly/common/build.sh | 62 --
registry/etcd/go-server/assembly/mac/dev.sh | 17 -
registry/etcd/go-server/assembly/mac/release.sh | 18 -
registry/etcd/go-server/assembly/mac/test.sh | 17 -
registry/etcd/go-server/profiles/dev/log.yml | 27 -
registry/etcd/go-server/profiles/dev/server.yml | 57 -
registry/kubernetes/README.md | 29 -
registry/kubernetes/client.yaml | 15 -
registry/kubernetes/role-binding.yaml | 11 -
registry/kubernetes/role.yaml | 8 -
registry/kubernetes/sa.yaml | 4 -
registry/kubernetes/server.yaml | 23 -
registry/nacos/README.md | 3 -
registry/nacos/docker/docker-compose.yaml | 25 -
registry/nacos/dubbo/go-client/app/client.go | 92 --
registry/nacos/dubbo/go-client/app/user.go | 54 -
registry/nacos/dubbo/go-client/app/version.go | 22 -
.../nacos/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
.../nacos/dubbo/go-client/assembly/common/build.sh | 83 --
.../nacos/dubbo/go-client/assembly/linux/dev.sh | 36 -
.../dubbo/go-client/assembly/linux/release.sh | 35 -
.../nacos/dubbo/go-client/assembly/linux/test.sh | 35 -
registry/nacos/dubbo/go-client/assembly/mac/dev.sh | 36 -
.../nacos/dubbo/go-client/assembly/mac/release.sh | 34 -
.../nacos/dubbo/go-client/assembly/mac/test.sh | 34 -
.../nacos/dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
.../nacos/dubbo/go-client/assembly/windows/test.sh | 34 -
.../nacos/dubbo/go-client/profiles/dev/client.yml | 58 -
.../nacos/dubbo/go-client/profiles/dev/log.yml | 28 -
registry/nacos/dubbo/go-server/app/server.go | 79 --
registry/nacos/dubbo/go-server/app/user.go | 63 --
registry/nacos/dubbo/go-server/app/version.go | 22 -
.../nacos/dubbo/go-server/assembly/bin/load.sh | 152 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
.../nacos/dubbo/go-server/assembly/common/build.sh | 80 --
.../nacos/dubbo/go-server/assembly/linux/dev.sh | 36 -
.../dubbo/go-server/assembly/linux/release.sh | 36 -
.../nacos/dubbo/go-server/assembly/linux/test.sh | 36 -
registry/nacos/dubbo/go-server/assembly/mac/dev.sh | 36 -
.../nacos/dubbo/go-server/assembly/mac/release.sh | 36 -
.../nacos/dubbo/go-server/assembly/mac/test.sh | 36 -
.../nacos/dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
.../nacos/dubbo/go-server/assembly/windows/test.sh | 36 -
.../nacos/dubbo/go-server/profiles/dev/log.yml | 28 -
.../nacos/dubbo/go-server/profiles/dev/server.yml | 58 -
registry/nacos/dubbo/java-client/build.sh | 21 -
registry/nacos/dubbo/java-client/pom.xml | 230 ----
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 60 --
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../resources/META-INF/spring/dubbo.consumer.xml | 37 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/dubbo.properties | 11 -
.../src/main/resources/log4j.properties | 19 -
registry/nacos/dubbo/java-server/build.sh | 20 -
registry/nacos/dubbo/java-server/pom.xml | 185 ----
registry/nacos/dubbo/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 44 -
.../src/main/java/com/ikurento/user/Provider.java | 33 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../java/com/ikurento/user/UserProviderImpl.java | 30 -
.../resources/META-INF/spring/dubbo.provider.xml | 33 -
.../src/main/resources/dubbo.properties | 12 -
.../src/main/resources/log4j.properties | 20 -
.../servicediscovery/etcd/go-client/app/client.go | 100 --
.../servicediscovery/etcd/go-client/app/user.go | 54 -
.../servicediscovery/etcd/go-client/app/version.go | 22 -
.../etcd/go-client/assembly/bin/load.sh | 203 ----
.../etcd/go-client/assembly/common/app.properties | 23 -
.../etcd/go-client/assembly/common/build.sh | 83 --
.../etcd/go-client/assembly/linux/dev.sh | 36 -
.../etcd/go-client/assembly/linux/release.sh | 35 -
.../etcd/go-client/assembly/linux/test.sh | 35 -
.../etcd/go-client/assembly/mac/dev.sh | 36 -
.../etcd/go-client/assembly/mac/release.sh | 34 -
.../etcd/go-client/assembly/mac/test.sh | 34 -
.../etcd/go-client/assembly/windows/dev.sh | 34 -
.../etcd/go-client/assembly/windows/release.sh | 34 -
.../etcd/go-client/assembly/windows/test.sh | 34 -
.../etcd/go-client/profiles/dev/client.yml | 77 --
.../etcd/go-client/profiles/dev/log.yml | 28 -
.../etcd/go-client/profiles/release/client.yml | 60 --
.../etcd/go-client/profiles/release/log.yml | 28 -
.../etcd/go-client/profiles/test/client.yml | 59 -
.../etcd/go-client/profiles/test/log.yml | 28 -
.../servicediscovery/etcd/go-server/app/server.go | 89 --
.../servicediscovery/etcd/go-server/app/user.go | 63 --
.../servicediscovery/etcd/go-server/app/version.go | 22 -
.../etcd/go-server/assembly/bin/load.sh | 151 ---
.../etcd/go-server/assembly/common/app.properties | 23 -
.../etcd/go-server/assembly/common/build.sh | 80 --
.../etcd/go-server/assembly/linux/dev.sh | 36 -
.../etcd/go-server/assembly/linux/release.sh | 36 -
.../etcd/go-server/assembly/linux/test.sh | 36 -
.../etcd/go-server/assembly/mac/dev.sh | 36 -
.../etcd/go-server/assembly/mac/release.sh | 36 -
.../etcd/go-server/assembly/mac/test.sh | 36 -
.../etcd/go-server/assembly/windows/dev.sh | 36 -
.../etcd/go-server/assembly/windows/release.sh | 36 -
.../etcd/go-server/assembly/windows/test.sh | 36 -
.../etcd/go-server/profiles/dev/log.yml | 28 -
.../etcd/go-server/profiles/dev/server.yml | 75 --
.../etcd/go-server/profiles/release/log.yml | 28 -
.../etcd/go-server/profiles/release/server.yml | 79 --
.../etcd/go-server/profiles/test/log.yml | 28 -
.../etcd/go-server/profiles/test/server.yml | 79 --
.../servicediscovery/etcd/java-client/build.sh | 21 -
registry/servicediscovery/etcd/java-client/pom.xml | 131 ---
.../servicediscovery/etcd/java-client/settings.xml | 41 -
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 36 -
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../resources/META-INF/spring/dubbo.consumer.xml | 41 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/dubbo.properties | 13 -
.../src/main/resources/log4j.properties | 19 -
.../servicediscovery/etcd/java-server/build.sh | 20 -
registry/servicediscovery/etcd/java-server/pom.xml | 198 ----
.../etcd/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 44 -
.../src/main/java/com/ikurento/user/Provider.java | 28 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../java/com/ikurento/user/UserProviderImpl.java | 30 -
.../resources/META-INF/spring/dubbo.provider.xml | 39 -
.../src/main/resources/dubbo.properties | 0
.../src/main/resources/log4j.properties | 20 -
.../servicediscovery/file/go-client/app/client.go | 100 --
.../servicediscovery/file/go-client/app/user.go | 54 -
.../servicediscovery/file/go-client/app/version.go | 22 -
.../file/go-client/assembly/bin/load.sh | 203 ----
.../file/go-client/assembly/common/app.properties | 23 -
.../file/go-client/assembly/common/build.sh | 83 --
.../file/go-client/assembly/linux/dev.sh | 36 -
.../file/go-client/assembly/linux/release.sh | 35 -
.../file/go-client/assembly/linux/test.sh | 35 -
.../file/go-client/assembly/mac/dev.sh | 36 -
.../file/go-client/assembly/mac/release.sh | 34 -
.../file/go-client/assembly/mac/test.sh | 34 -
.../file/go-client/assembly/windows/dev.sh | 34 -
.../file/go-client/assembly/windows/release.sh | 34 -
.../file/go-client/assembly/windows/test.sh | 34 -
.../file/go-client/profiles/dev/client.yml | 64 --
.../file/go-client/profiles/dev/log.yml | 28 -
.../servicediscovery/file/go-server/app/server.go | 86 --
.../servicediscovery/file/go-server/app/user.go | 64 --
.../servicediscovery/file/go-server/app/version.go | 22 -
.../file/go-server/assembly/bin/load.sh | 151 ---
.../file/go-server/assembly/common/app.properties | 23 -
.../file/go-server/assembly/common/build.sh | 80 --
.../file/go-server/assembly/linux/dev.sh | 36 -
.../file/go-server/assembly/linux/release.sh | 36 -
.../file/go-server/assembly/linux/test.sh | 36 -
.../file/go-server/assembly/mac/dev.sh | 36 -
.../file/go-server/assembly/mac/release.sh | 36 -
.../file/go-server/assembly/mac/test.sh | 36 -
.../file/go-server/assembly/windows/dev.sh | 36 -
.../file/go-server/assembly/windows/release.sh | 36 -
.../file/go-server/assembly/windows/test.sh | 36 -
.../file/go-server/profiles/dev/log.yml | 28 -
.../file/go-server/profiles/dev/server.yml | 63 --
.../servicediscovery/nacos/go-client/app/client.go | 103 --
.../servicediscovery/nacos/go-client/app/user.go | 54 -
.../nacos/go-client/app/version.go | 22 -
.../nacos/go-client/assembly/bin/load.sh | 203 ----
.../nacos/go-client/assembly/common/app.properties | 23 -
.../nacos/go-client/assembly/common/build.sh | 83 --
.../nacos/go-client/assembly/linux/dev.sh | 36 -
.../nacos/go-client/assembly/linux/release.sh | 35 -
.../nacos/go-client/assembly/linux/test.sh | 35 -
.../nacos/go-client/assembly/mac/dev.sh | 36 -
.../nacos/go-client/assembly/mac/release.sh | 34 -
.../nacos/go-client/assembly/mac/test.sh | 34 -
.../nacos/go-client/assembly/windows/dev.sh | 34 -
.../nacos/go-client/assembly/windows/release.sh | 34 -
.../nacos/go-client/assembly/windows/test.sh | 34 -
.../nacos/go-client/profiles/dev/client.yml | 79 --
.../nacos/go-client/profiles/dev/log.yml | 28 -
.../nacos/go-client/profiles/release/client.yml | 60 --
.../nacos/go-client/profiles/release/log.yml | 28 -
.../nacos/go-client/profiles/test/client.yml | 59 -
.../nacos/go-client/profiles/test/log.yml | 28 -
.../servicediscovery/nacos/go-server/app/server.go | 87 --
.../servicediscovery/nacos/go-server/app/user.go | 63 --
.../nacos/go-server/app/version.go | 22 -
.../nacos/go-server/assembly/bin/load.sh | 151 ---
.../nacos/go-server/assembly/common/app.properties | 23 -
.../nacos/go-server/assembly/common/build.sh | 80 --
.../nacos/go-server/assembly/linux/dev.sh | 36 -
.../nacos/go-server/assembly/linux/release.sh | 36 -
.../nacos/go-server/assembly/linux/test.sh | 36 -
.../nacos/go-server/assembly/mac/dev.sh | 36 -
.../nacos/go-server/assembly/mac/release.sh | 36 -
.../nacos/go-server/assembly/mac/test.sh | 36 -
.../nacos/go-server/assembly/windows/dev.sh | 36 -
.../nacos/go-server/assembly/windows/release.sh | 36 -
.../nacos/go-server/assembly/windows/test.sh | 36 -
.../nacos/go-server/profiles/dev/log.yml | 28 -
.../nacos/go-server/profiles/dev/server.yml | 79 --
.../nacos/go-server/profiles/release/log.yml | 28 -
.../nacos/go-server/profiles/release/server.yml | 79 --
.../nacos/go-server/profiles/test/log.yml | 28 -
.../nacos/go-server/profiles/test/server.yml | 79 --
.../servicediscovery/nacos/java-client/build.sh | 21 -
.../servicediscovery/nacos/java-client/pom.xml | 131 ---
.../nacos/java-client/settings.xml | 41 -
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 36 -
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../resources/META-INF/spring/dubbo.consumer.xml | 41 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/dubbo.properties | 13 -
.../src/main/resources/log4j.properties | 19 -
.../servicediscovery/nacos/java-server/build.sh | 20 -
.../servicediscovery/nacos/java-server/pom.xml | 198 ----
.../nacos/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 44 -
.../src/main/java/com/ikurento/user/Provider.java | 28 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../java/com/ikurento/user/UserProviderImpl.java | 30 -
.../resources/META-INF/spring/dubbo.provider.xml | 39 -
.../src/main/resources/dubbo.properties | 0
.../src/main/resources/log4j.properties | 20 -
.../zookeeper/go-client/app/client.go | 100 --
.../zookeeper/go-client/app/user.go | 54 -
.../zookeeper/go-client/app/version.go | 22 -
.../zookeeper/go-client/assembly/bin/load.sh | 203 ----
.../go-client/assembly/common/app.properties | 23 -
.../zookeeper/go-client/assembly/common/build.sh | 83 --
.../zookeeper/go-client/assembly/linux/dev.sh | 36 -
.../zookeeper/go-client/assembly/linux/release.sh | 35 -
.../zookeeper/go-client/assembly/linux/test.sh | 35 -
.../zookeeper/go-client/assembly/mac/dev.sh | 36 -
.../zookeeper/go-client/assembly/mac/release.sh | 34 -
.../zookeeper/go-client/assembly/mac/test.sh | 34 -
.../zookeeper/go-client/assembly/windows/dev.sh | 34 -
.../go-client/assembly/windows/release.sh | 34 -
.../zookeeper/go-client/assembly/windows/test.sh | 34 -
.../zookeeper/go-client/profiles/dev/client.yml | 77 --
.../zookeeper/go-client/profiles/dev/log.yml | 28 -
.../go-client/profiles/release/client.yml | 60 --
.../zookeeper/go-client/profiles/release/log.yml | 28 -
.../zookeeper/go-client/profiles/test/client.yml | 59 -
.../zookeeper/go-client/profiles/test/log.yml | 28 -
.../zookeeper/go-server/app/server.go | 87 --
.../zookeeper/go-server/app/user.go | 63 --
.../zookeeper/go-server/app/version.go | 22 -
.../zookeeper/go-server/assembly/bin/load.sh | 151 ---
.../go-server/assembly/common/app.properties | 23 -
.../zookeeper/go-server/assembly/common/build.sh | 80 --
.../zookeeper/go-server/assembly/linux/dev.sh | 36 -
.../zookeeper/go-server/assembly/linux/release.sh | 36 -
.../zookeeper/go-server/assembly/linux/test.sh | 36 -
.../zookeeper/go-server/assembly/mac/dev.sh | 36 -
.../zookeeper/go-server/assembly/mac/release.sh | 36 -
.../zookeeper/go-server/assembly/mac/test.sh | 36 -
.../zookeeper/go-server/assembly/windows/dev.sh | 36 -
.../go-server/assembly/windows/release.sh | 36 -
.../zookeeper/go-server/assembly/windows/test.sh | 36 -
.../zookeeper/go-server/profiles/dev/log.yml | 28 -
.../zookeeper/go-server/profiles/dev/server.yml | 75 --
.../zookeeper/go-server/profiles/release/log.yml | 28 -
.../go-server/profiles/release/server.yml | 79 --
.../zookeeper/go-server/profiles/test/log.yml | 28 -
.../zookeeper/go-server/profiles/test/server.yml | 79 --
.../zookeeper/java-client/build.sh | 21 -
.../servicediscovery/zookeeper/java-client/pom.xml | 131 ---
.../zookeeper/java-client/settings.xml | 41 -
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 36 -
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../resources/META-INF/spring/dubbo.consumer.xml | 41 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/dubbo.properties | 13 -
.../src/main/resources/log4j.properties | 19 -
.../zookeeper/java-server/build.sh | 20 -
.../servicediscovery/zookeeper/java-server/pom.xml | 198 ----
.../zookeeper/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 44 -
.../src/main/java/com/ikurento/user/Provider.java | 28 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../java/com/ikurento/user/UserProviderImpl.java | 30 -
.../resources/META-INF/spring/dubbo.provider.xml | 39 -
.../src/main/resources/dubbo.properties | 0
.../src/main/resources/log4j.properties | 20 -
router/condition/README.md | 33 -
router/condition/go-client/app/client.go | 121 ---
router/condition/go-client/assembly/bin/load.sh | 204 ----
.../go-client/assembly/common/app.properties | 24 -
.../condition/go-client/assembly/common/build.sh | 90 --
router/condition/go-client/assembly/linux/dev.sh | 36 -
.../condition/go-client/assembly/linux/release.sh | 35 -
router/condition/go-client/assembly/linux/test.sh | 35 -
router/condition/go-client/assembly/mac/dev.sh | 36 -
router/condition/go-client/assembly/mac/release.sh | 34 -
router/condition/go-client/assembly/mac/test.sh | 34 -
router/condition/go-client/assembly/windows/dev.sh | 34 -
.../go-client/assembly/windows/release.sh | 34 -
.../condition/go-client/assembly/windows/test.sh | 34 -
router/condition/go-client/profiles/dev/client.yml | 62 --
router/condition/go-client/profiles/dev/log.yml | 28 -
.../go-client/profiles/dev/router_config.yml | 12 -
router/condition/go-server/app/server.go | 81 --
router/condition/go-server/app/user.go | 63 --
router/condition/go-server/app/version.go | 22 -
router/condition/go-server/assembly/bin/load.sh | 151 ---
.../go-server/assembly/common/app.properties | 23 -
.../condition/go-server/assembly/common/build.sh | 80 --
router/condition/go-server/assembly/linux/dev.sh | 36 -
.../condition/go-server/assembly/linux/release.sh | 36 -
router/condition/go-server/assembly/linux/test.sh | 36 -
router/condition/go-server/assembly/mac/dev.sh | 36 -
router/condition/go-server/assembly/mac/release.sh | 36 -
router/condition/go-server/assembly/mac/test.sh | 36 -
router/condition/go-server/assembly/windows/dev.sh | 36 -
.../go-server/assembly/windows/release.sh | 36 -
.../condition/go-server/assembly/windows/test.sh | 36 -
router/condition/go-server/profiles/dev/log.yml | 28 -
router/condition/go-server/profiles/dev/server.yml | 92 --
router/condition/java-client/build.sh | 21 -
router/condition/java-client/pom.xml | 211 ----
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 61 --
.../java/com/ikurento/user/EmbeddedZooKeeper.java | 250 -----
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../src/main/java/com/ikurento/user/ZKTools.java | 88 --
.../resources/META-INF/spring/dubbo.consumer.xml | 37 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/log4j.properties | 19 -
router/condition/java-server/build.sh | 20 -
router/condition/java-server/pom.xml | 210 ----
router/condition/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 43 -
.../java/com/ikurento/user/EmbeddedZooKeeper.java | 250 -----
.../src/main/java/com/ikurento/user/Provider.java | 40 -
.../src/main/java/com/ikurento/user/Provider2.java | 40 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../src/main/java/com/ikurento/user/ZKTools.java | 89 --
.../com/ikurento/user/impl/UserProviderImpl.java | 32 -
.../resources/META-INF/spring/dubbo.provider.xml | 34 -
.../resources/META-INF/spring/dubbo.provider2.xml | 34 -
.../src/main/resources/log4j.properties | 20 -
seata/client/README.md | 12 -
seata/client/app/client.go | 100 --
seata/client/app/svc/svc.go | 153 ---
seata/client/app/version.go | 22 -
seata/client/assembly/bin/load.sh | 204 ----
seata/client/assembly/common/app.properties | 24 -
seata/client/assembly/common/build.sh | 83 --
seata/client/assembly/linux/dev.sh | 36 -
seata/client/assembly/linux/release.sh | 35 -
seata/client/assembly/linux/test.sh | 35 -
seata/client/assembly/mac/dev.sh | 36 -
seata/client/assembly/mac/release.sh | 34 -
seata/client/assembly/mac/test.sh | 34 -
seata/client/assembly/windows/dev.sh | 34 -
seata/client/assembly/windows/release.sh | 34 -
seata/client/assembly/windows/test.sh | 34 -
seata/client/profiles/dev/client.yml | 65 --
seata/client/profiles/dev/log.yml | 28 -
seata/client/profiles/dev/seata.yml | 32 -
seata/client/profiles/release/client.yml | 51 -
seata/client/profiles/release/log.yml | 28 -
seata/client/profiles/release/seata.yml | 32 -
seata/client/profiles/test/client.yml | 50 -
seata/client/profiles/test/log.yml | 28 -
seata/filter/seata_filter.go | 43 -
seata/go.mod | 10 -
seata/go.sum | 632 -----------
seata/order-svc/README.md | 18 -
seata/order-svc/app/dao/dao.go | 150 ---
seata/order-svc/app/order_svc.go | 53 -
seata/order-svc/app/server.go | 113 --
seata/order-svc/app/version.go | 22 -
seata/order-svc/assembly/bin/load.sh | 152 ---
seata/order-svc/assembly/common/app.properties | 24 -
seata/order-svc/assembly/common/build.sh | 82 --
seata/order-svc/assembly/linux/dev.sh | 36 -
seata/order-svc/assembly/linux/release.sh | 36 -
seata/order-svc/assembly/linux/test.sh | 36 -
seata/order-svc/assembly/mac/dev.sh | 36 -
seata/order-svc/assembly/mac/release.sh | 36 -
seata/order-svc/assembly/mac/test.sh | 36 -
seata/order-svc/assembly/windows/dev.sh | 36 -
seata/order-svc/assembly/windows/release.sh | 36 -
seata/order-svc/assembly/windows/test.sh | 36 -
seata/order-svc/profiles/dev/log.yml | 28 -
seata/order-svc/profiles/dev/seata.yml | 37 -
seata/order-svc/profiles/dev/server.yml | 56 -
seata/order-svc/profiles/release/log.yml | 28 -
seata/order-svc/profiles/release/seata.yml | 37 -
seata/order-svc/profiles/release/server.yml | 60 --
seata/order-svc/profiles/test/log.yml | 28 -
seata/order-svc/profiles/test/server.yml | 58 -
seata/product-svc/README.md | 18 -
seata/product-svc/app/dao/dao.go | 75 --
seata/product-svc/app/product_svc.go | 53 -
seata/product-svc/app/server.go | 114 --
seata/product-svc/app/version.go | 22 -
seata/product-svc/assembly/bin/load.sh | 152 ---
seata/product-svc/assembly/common/app.properties | 24 -
seata/product-svc/assembly/common/build.sh | 82 --
seata/product-svc/assembly/linux/dev.sh | 36 -
seata/product-svc/assembly/linux/release.sh | 36 -
seata/product-svc/assembly/linux/test.sh | 36 -
seata/product-svc/assembly/mac/dev.sh | 36 -
seata/product-svc/assembly/mac/release.sh | 36 -
seata/product-svc/assembly/mac/test.sh | 36 -
seata/product-svc/assembly/windows/dev.sh | 36 -
seata/product-svc/assembly/windows/release.sh | 36 -
seata/product-svc/assembly/windows/test.sh | 36 -
seata/product-svc/profiles/dev/log.yml | 28 -
seata/product-svc/profiles/dev/seata.yml | 38 -
seata/product-svc/profiles/dev/server.yml | 57 -
seata/product-svc/profiles/release/log.yml | 28 -
seata/product-svc/profiles/release/seata.yml | 38 -
seata/product-svc/profiles/release/server.yml | 60 --
seata/product-svc/profiles/test/log.yml | 28 -
seata/product-svc/profiles/test/server.yml | 58 -
seata/scripts/seata_order.sql | 103 --
seata/scripts/seata_product.sql | 112 --
shop/README.md | 44 -
shop/dubbo/go-service-order/app/order.go | 74 --
shop/dubbo/go-service-order/app/product.go | 58 -
shop/dubbo/go-service-order/app/service.go | 77 --
shop/dubbo/go-service-order/app/version.go | 28 -
shop/dubbo/go-service-order/profiles/client.yml | 65 --
shop/dubbo/go-service-order/profiles/log.yml | 28 -
shop/dubbo/go-service-order/profiles/server.yml | 58 -
shop/dubbo/go-service-product/app/product.go | 67 --
shop/dubbo/go-service-product/app/service.go | 76 --
shop/dubbo/go-service-product/app/version.go | 22 -
shop/dubbo/go-service-product/profiles/log.yml | 28 -
shop/dubbo/go-service-product/profiles/server.yml | 58 -
shop/dubbo/go-service-user/app/order.go | 69 --
shop/dubbo/go-service-user/app/service.go | 90 --
shop/dubbo/go-service-user/app/version.go | 22 -
shop/dubbo/go-service-user/profiles/client.yml | 61 --
shop/dubbo/go-service-user/profiles/log.yml | 28 -
tracing/dubbo/go-client/app/client.go | 121 ---
tracing/dubbo/go-client/app/user.go | 56 -
tracing/dubbo/go-client/app/version.go | 22 -
tracing/dubbo/go-client/assembly/bin/load.sh | 203 ----
.../dubbo/go-client/assembly/common/app.properties | 23 -
tracing/dubbo/go-client/assembly/common/build.sh | 83 --
tracing/dubbo/go-client/assembly/linux/dev.sh | 36 -
tracing/dubbo/go-client/assembly/linux/release.sh | 35 -
tracing/dubbo/go-client/assembly/linux/test.sh | 35 -
tracing/dubbo/go-client/assembly/mac/dev.sh | 36 -
tracing/dubbo/go-client/assembly/mac/release.sh | 34 -
tracing/dubbo/go-client/assembly/mac/test.sh | 34 -
tracing/dubbo/go-client/assembly/windows/dev.sh | 34 -
.../dubbo/go-client/assembly/windows/release.sh | 34 -
tracing/dubbo/go-client/assembly/windows/test.sh | 34 -
tracing/dubbo/go-client/profiles/dev/client.yml | 61 --
tracing/dubbo/go-client/profiles/dev/log.yml | 28 -
.../dubbo/go-client/profiles/release/client.yml | 60 --
tracing/dubbo/go-client/profiles/release/log.yml | 28 -
tracing/dubbo/go-client/profiles/test/client.yml | 59 -
tracing/dubbo/go-client/profiles/test/log.yml | 28 -
tracing/dubbo/go-server/app/server.go | 110 --
tracing/dubbo/go-server/app/user.go | 67 --
tracing/dubbo/go-server/app/version.go | 22 -
tracing/dubbo/go-server/assembly/bin/load.sh | 151 ---
.../dubbo/go-server/assembly/common/app.properties | 23 -
tracing/dubbo/go-server/assembly/common/build.sh | 80 --
tracing/dubbo/go-server/assembly/linux/dev.sh | 36 -
tracing/dubbo/go-server/assembly/linux/release.sh | 36 -
tracing/dubbo/go-server/assembly/linux/test.sh | 36 -
tracing/dubbo/go-server/assembly/mac/dev.sh | 36 -
tracing/dubbo/go-server/assembly/mac/release.sh | 36 -
tracing/dubbo/go-server/assembly/mac/test.sh | 36 -
tracing/dubbo/go-server/assembly/windows/dev.sh | 36 -
.../dubbo/go-server/assembly/windows/release.sh | 36 -
tracing/dubbo/go-server/assembly/windows/test.sh | 36 -
tracing/dubbo/go-server/profiles/dev/log.yml | 28 -
tracing/dubbo/go-server/profiles/dev/server.yml | 58 -
tracing/dubbo/go-server/profiles/release/log.yml | 28 -
.../dubbo/go-server/profiles/release/server.yml | 62 --
tracing/dubbo/go-server/profiles/test/log.yml | 28 -
tracing/dubbo/go-server/profiles/test/server.yml | 62 --
tracing/dubbo/java-client/build.sh | 21 -
tracing/dubbo/java-client/pom.xml | 230 ----
.../java-client/src/main/assembly/assembly.xml | 43 -
.../src/main/java/com/ikurento/user/Consumer.java | 60 --
.../src/main/java/com/ikurento/user/User.java | 76 --
.../main/java/com/ikurento/user/UserProvider.java | 18 -
.../resources/META-INF/spring/dubbo.consumer.xml | 37 -
.../src/main/resources/META-INF/spring/service.xml | 27 -
.../src/main/resources/dubbo.properties | 13 -
.../src/main/resources/log4j.properties | 19 -
tracing/dubbo/java-server/build.sh | 20 -
tracing/dubbo/java-server/pom.xml | 196 ----
tracing/dubbo/java-server/script/debug.sh | 23 -
.../java-server/src/main/assembly/assembly.xml | 44 -
.../src/main/java/com/ikurento/user/Provider.java | 33 -
.../src/main/java/com/ikurento/user/User.java | 86 --
.../main/java/com/ikurento/user/UserProvider.java | 24 -
.../java/com/ikurento/user/UserProviderImpl.java | 30 -
.../resources/META-INF/spring/dubbo.provider.xml | 33 -
.../src/main/resources/dubbo.properties | 14 -
.../src/main/resources/log4j.properties | 20 -
tracing/grpc/README.md | 46 -
tracing/grpc/go-client/app/Makefile | 2 -
tracing/grpc/go-client/app/client.go | 108 --
tracing/grpc/go-client/app/hello.go | 48 -
tracing/grpc/go-client/app/helloworld.pb.go | 284 -----
tracing/grpc/go-client/app/helloworld.proto | 37 -
tracing/grpc/go-client/app/version.go | 22 -
tracing/grpc/go-client/assembly/bin/load.sh | 203 ----
.../grpc/go-client/assembly/common/app.properties | 23 -
tracing/grpc/go-client/assembly/common/build.sh | 83 --
tracing/grpc/go-client/assembly/linux/dev.sh | 36 -
tracing/grpc/go-client/assembly/linux/release.sh | 35 -
tracing/grpc/go-client/assembly/linux/test.sh | 35 -
tracing/grpc/go-client/assembly/mac/dev.sh | 36 -
tracing/grpc/go-client/assembly/mac/release.sh | 34 -
tracing/grpc/go-client/assembly/mac/test.sh | 34 -
tracing/grpc/go-client/assembly/windows/dev.sh | 34 -
tracing/grpc/go-client/assembly/windows/release.sh | 34 -
tracing/grpc/go-client/assembly/windows/test.sh | 34 -
tracing/grpc/go-client/profiles/dev/client.yml | 61 --
tracing/grpc/go-client/profiles/dev/log.yml | 28 -
tracing/grpc/go-client/profiles/release/client.yml | 61 --
tracing/grpc/go-client/profiles/release/log.yml | 28 -
tracing/grpc/go-client/profiles/test/client.yml | 63 --
tracing/grpc/go-client/profiles/test/log.yml | 28 -
tracing/grpc/go-server/app/greeter.go | 50 -
tracing/grpc/go-server/app/helloworld.pb.go | 284 -----
tracing/grpc/go-server/app/helloworld.proto | 37 -
tracing/grpc/go-server/app/server.go | 91 --
tracing/grpc/go-server/app/version.go | 22 -
tracing/grpc/go-server/assembly/bin/load.sh | 151 ---
.../grpc/go-server/assembly/common/app.properties | 23 -
tracing/grpc/go-server/assembly/common/build.sh | 80 --
tracing/grpc/go-server/assembly/linux/dev.sh | 36 -
tracing/grpc/go-server/assembly/linux/release.sh | 36 -
tracing/grpc/go-server/assembly/linux/test.sh | 36 -
tracing/grpc/go-server/assembly/mac/dev.sh | 36 -
tracing/grpc/go-server/assembly/mac/release.sh | 36 -
tracing/grpc/go-server/assembly/mac/test.sh | 36 -
tracing/grpc/go-server/assembly/windows/dev.sh | 36 -
tracing/grpc/go-server/assembly/windows/release.sh | 36 -
tracing/grpc/go-server/assembly/windows/test.sh | 36 -
tracing/grpc/go-server/profiles/dev/log.yml | 28 -
tracing/grpc/go-server/profiles/dev/server.yml | 57 -
tracing/grpc/go-server/profiles/release/log.yml | 28 -
tracing/grpc/go-server/profiles/release/server.yml | 54 -
tracing/grpc/go-server/profiles/test/log.yml | 28 -
tracing/grpc/go-server/profiles/test/server.yml | 57 -
tracing/jsonrpc/go-client/app/client.go | 285 -----
tracing/jsonrpc/go-client/app/user.go | 97 --
tracing/jsonrpc/go-client/app/version.go | 22 -
tracing/jsonrpc/go-client/assembly/bin/load.sh | 203 ----
.../go-client/assembly/common/app.properties | 23 -
tracing/jsonrpc/go-client/assembly/common/build.sh | 83 --
tracing/jsonrpc/go-client/assembly/linux/dev.sh | 36 -
.../jsonrpc/go-client/assembly/linux/release.sh | 35 -
tracing/jsonrpc/go-client/assembly/linux/test.sh | 35 -
tracing/jsonrpc/go-client/assembly/mac/dev.sh | 36 -
tracing/jsonrpc/go-client/assembly/mac/release.sh | 34 -
tracing/jsonrpc/go-client/assembly/mac/test.sh | 34 -
tracing/jsonrpc/go-client/assembly/windows/dev.sh | 34 -
.../jsonrpc/go-client/assembly/windows/release.sh | 34 -
tracing/jsonrpc/go-client/assembly/windows/test.sh | 34 -
tracing/jsonrpc/go-client/profiles/dev/client.yml | 62 --
tracing/jsonrpc/go-client/profiles/dev/log.yml | 28 -
.../jsonrpc/go-client/profiles/release/client.yml | 60 --
tracing/jsonrpc/go-client/profiles/release/log.yml | 28 -
tracing/jsonrpc/go-client/profiles/test/client.yml | 60 --
tracing/jsonrpc/go-client/profiles/test/log.yml | 28 -
tracing/jsonrpc/go-server/app/server.go | 109 --
tracing/jsonrpc/go-server/app/user.go | 73 --
tracing/jsonrpc/go-server/app/user_provider.go | 114 --
tracing/jsonrpc/go-server/app/user_provider1.go | 87 --
tracing/jsonrpc/go-server/app/user_provider2.go | 97 --
tracing/jsonrpc/go-server/app/version.go | 22 -
tracing/jsonrpc/go-server/assembly/bin/load.sh | 151 ---
.../go-server/assembly/common/app.properties | 23 -
tracing/jsonrpc/go-server/assembly/common/build.sh | 80 --
tracing/jsonrpc/go-server/assembly/linux/dev.sh | 36 -
.../jsonrpc/go-server/assembly/linux/release.sh | 36 -
tracing/jsonrpc/go-server/assembly/linux/test.sh | 36 -
tracing/jsonrpc/go-server/assembly/mac/dev.sh | 36 -
tracing/jsonrpc/go-server/assembly/mac/release.sh | 36 -
tracing/jsonrpc/go-server/assembly/mac/test.sh | 36 -
tracing/jsonrpc/go-server/assembly/windows/dev.sh | 36 -
.../jsonrpc/go-server/assembly/windows/release.sh | 36 -
tracing/jsonrpc/go-server/assembly/windows/test.sh | 36 -
tracing/jsonrpc/go-server/profiles/dev/log.yml | 28 -
tracing/jsonrpc/go-server/profiles/dev/server.yml | 76 --
tracing/jsonrpc/go-server/profiles/release/log.yml | 28 -
.../jsonrpc/go-server/profiles/release/server.yml | 75 --
tracing/jsonrpc/go-server/profiles/test/log.yml | 28 -
tracing/jsonrpc/go-server/profiles/test/server.yml | 75 --
1447 files changed, 78664 deletions(-)
diff --git a/.github/workflows/golang-ci.yml b/.github/workflows/golang-ci.yml
deleted file mode 100644
index 2276c0e..0000000
--- a/.github/workflows/golang-ci.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: Golang CI
-
-on:
- pull_request:
- paths:
- - "golang/**"
- push:
- paths:
- - 'golang/**'
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Set up Go 1.13
- uses: actions/setup-go@v1
- with:
- go-version: 1.13
-
- - name: Check out source code
- uses: actions/checkout@v1
-
- - name: Build
- run: |
- cd golang
- ./ci.sh
\ No newline at end of file
diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml
deleted file mode 100644
index 0ed342c..0000000
--- a/.github/workflows/java-ci.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: Java CI
-
-on:
- pull_request:
- paths:
- - "java/**"
- push:
- paths:
- - 'java/**'
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v1
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
- with:
- java-version: 1.8
- - name: Build with Maven
- run: |
- cd java
- ./mvnw --settings .mvn/settings.xml clean package
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 9b850fa..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,31 +0,0 @@
-# Binaries for programs and plugins
-*.exe
-*.exe~
-*.dll
-*.so
-*.dylib
-
-# Test binary, build with `go test -c`
-*.test
-
-# Output of the go coverage tool, specifically when used with LiteIDE
-*.out
-coverage.txt
-
-*.idea
-*.iml
-target/
-classes
-dubbo.json
-
-# Gopkg.lock
-vendor/
-
-logs/
-.vscode/
-coverage.txt
-
-# maven
-.classpath
-.project
-.settings/
\ No newline at end of file
diff --git a/.images/edit_configuratios.png b/.images/edit_configuratios.png
deleted file mode 100644
index b4c9235..0000000
Binary files a/.images/edit_configuratios.png and /dev/null differ
diff --git a/.images/edit_env.png b/.images/edit_env.png
deleted file mode 100644
index 236c1bb..0000000
Binary files a/.images/edit_env.png and /dev/null differ
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 09f1032..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-language: golang
-
-sudo: required
-go:
- - 1.13
-env:
- - GO111MODULE=on
-import:
- - golang/helloworld/dubbo/.travis.yml
-# - golang/direct/dubbo/.travis.yml
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 261eeb9..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/README.md b/README.md
deleted file mode 100644
index f9af481..0000000
--- a/README.md
+++ /dev/null
@@ -1,147 +0,0 @@
-# examples
-
-Examples of dubbo-go
-
-## What does this contain
-
-* helloworld
-
- A simplest example. It contain 'go-client', 'go-server', 'java-server' of dubbo protocol.
-
-* direct
-
- A direct example. This feature make start of dubbo-go get easy.
-
-* async
-
- An async example. dubbo-go supports client to call server asynchronously.
-
-* general
-
- A general example. It had validated zookeeper registry and different parameter lists of service.
- And it has a comprehensive testing with dubbo/jsonrpc/grpc/rest protocol. You can refer to it to create your first complete dubbo-go project.
-
-* generic
-
- A generic example. It show how to use generic feature of dubbo-go.
-
-* configcenter
-
- Some examples of different config center. There are three -- zookeeper, apollo and nacos at present.
-
-* multi_registry
-
- An example of multiple registries.
-
-* registry
-
- Some examples of different registry. There are kubernetes, nacos and etcd at present.
-
- **Note**:
-
- When use different registry, you need update config file, but also must import the registry package. see the etcd `README`
-
-* filter
-
- Some examples of different filter. Including custom_filter and tpslimit
-
-* router
-
- Some router examples. Now, a condition router example is existing.
-
-* seata
-
- Transaction system examples by seata.
-
-* shop
-
- Shop sample, make consumer and provider run in a go program.
-
-* tracing
-
- Some tracing examples. We have tracing support of dubbo/grpc/jsonrpc protocol at present.
-
-## How to build and run
-
-> Take `helloworld` as an example
-java server
-
-```bash
-cd helloworld/dubbo/java-server
-sh build.sh
-cd ./target
-tar -zxvf user-info-server-0.2.0-assembly.tar.gz
-cd ./user-info-server-0.2.0
-sh ./bin/server.sh start
-```
-
-java client
-
-```bash
-cd helloworld/dubbo/java-client
-sh build.sh
-cd ./target
-tar -zxvf user-info-client-0.2.0-assembly.tar.gz
-cd ./user-info-client-0.2.0
-sh ./bin/server.sh start
-```
-
-go server
-
-* $ARCH = [linux, mac, windows] and $ENV = [dev, release, test]
-
-```bash
-cd helloworld/dubbo/go-server
-sh ./assembly/$ARCH/$ENV.sh
-cd ./target/$ARCH/user_info_server-0.3.1-20190517-0930-release
-# $SUFFIX is a suffix of config file,
-# such as server_zookeeper.yml when $SUFFIX is "zookeeper",
-# if $SUFFIX = "", default server.yml
-sh ./bin/load.sh start $SUFFIX
-```
-
-go client
-
-* $ARCH = [linux, mac, windows] and $ENV = [dev, release, test]
-
-```bash
-cd helloworld/dubbo/go-client
-sh ./assembly/$ARCH/$ENV.sh
-cd ./target/$ARCH/user_info_client-0.3.1-20190517-0921-release
-# $SUFFIX is a suffix of config file,
-# such as client_zookeeper.yml when $SUFFIX = zookeeper",
-# if $SUFFIX = "", config file is client.yml
-sh ./bin/load_user_info_client.sh start $SUFFIX
-```
-
-docker env
-
-```bash
-docker run -d --name zk zookeeper
-docker run -d --network container:zk registry.cn-hangzhou.aliyuncs.com/scottwang/go-server
-docker run -d --network container:zk registry.cn-hangzhou.aliyuncs.com/scottwang/go-client
-```
-
-## How to debug with Goland
-
-### Edit Configurations
-
-
-
-### Configure `Environment Variable`
-
-1. Add `APP_LOG_CONF_FILE`. eg: `/home/xx/dubbogo-samples/helloworld/client/conf/log.yml`
-2. Add `CONF_CONSUMER_FILE_PATH` eg: `/home/xx/dubbogo-samples/helloworld/client/conf/client.yml`
-3. Add `CONF_PROVIDER_FILE_PATH` eg: `/home/xx/dubbogo-samples/helloworld/server/conf/server.yml`
-
-
-
-### Apply & Run
-
-## How to contribute
-
-If you want to add some samples, we hope that you can do this:
-1. Adding samples in appropriate directory. If you dont' know which directory you should put your samples into, you can get some advices from dubbo-go community.
-2. You must run the samples locally and there must be no any error.
-3. If your samples have some third party dependency, including another framework, we hope that you can provide some docs, script is better.
-4. Please make pr to https://github.com/dubbogo/dubbo-samples instead of https://github.com/apache/dubbo-samples. We will synchronize to apache/dubbo-samples regularly.
diff --git a/async/README.md b/async/README.md
deleted file mode 100644
index 648de36..0000000
--- a/async/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-### Use Async Feature
-
-Implement this interface
-
-```golang
-//AsyncCallbackService callback interface for async
-type AsyncCallbackService interface {
- CallBack(response CallbackResponse) // callback
-}
-```
-
-like this
-
-```golang
-type UserProvider struct {
- GetUser func(ctx context.Context, req []interface{}, rsp *User) error
-}
-
-func (u *UserProvider) CallBack(res common.CallbackResponse) {
- fmt.Println("CallBack res:",res)
-}
-```
-
-Dubbogo will run Async logic once network request finished.
diff --git a/async/go-client/app/client.go b/async/go-client/app/client.go
deleted file mode 100644
index c4e79ca..0000000
--- a/async/go-client/app/client.go
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "os/signal"
- "syscall"
- "time"
-)
-
-import (
- "github.com/dubbogo/gost/log"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/common"
- "github.com/apache/dubbo-go/common/logger"
- _ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
- "github.com/apache/dubbo-go/config"
- _ "github.com/apache/dubbo-go/protocol/dubbo"
- _ "github.com/apache/dubbo-go/registry/protocol"
-
- _ "github.com/apache/dubbo-go/filter/filter_impl"
-
- _ "github.com/apache/dubbo-go/cluster/cluster_impl"
- _ "github.com/apache/dubbo-go/cluster/loadbalance"
- _ "github.com/apache/dubbo-go/registry/zookeeper"
-)
-
-var (
- survivalTimeout int = 10e9
-)
-
-// they are necessary:
-// export CONF_CONSUMER_FILE_PATH="xxx"
-// export APP_LOG_CONF_FILE="xxx"
-func main() {
- hessian.RegisterPOJO(&User{})
- config.Load()
- time.Sleep(1e9)
-
- gxlog.CInfo("\n\n\nstart to test dubbo")
- user := &User{}
- err := userProvider.GetUser(context.TODO(), []interface{}{"A001"}, user)
- if err != nil {
- panic(err)
- }
- gxlog.CInfo("response result: %v\n", user)
- initSignal()
-}
-
-func initSignal() {
- signals := make(chan os.Signal, 1)
- // It is not possible to block SIGKILL or syscall.SIGSTOP
- signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGHUP,
- syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
- for {
- sig := <-signals
- logger.Infof("get signal %s", sig.String())
- switch sig {
- case syscall.SIGHUP:
- // reload()
- default:
- time.AfterFunc(time.Duration(survivalTimeout), func() {
- logger.Warnf("app exit now by force...")
- os.Exit(1)
- })
-
- // The program exits normally or timeout forcibly exits.
- fmt.Println("app exit now...")
- return
- }
- }
-}
-
-var userProvider = new(UserProvider)
-
-func init() {
- config.SetConsumerService(userProvider)
- hessian.RegisterPOJO(&User{})
-}
-
-type User struct {
- Id string
- Name string
- Age int32
- Time time.Time
-}
-
-type UserProvider struct {
- GetUser func(ctx context.Context, req []interface{}, rsp *User) error
-}
-
-func (u *UserProvider) Reference() string {
- return "UserProvider"
-}
-
-func (User) JavaClassName() string {
- return "com.ikurento.user.User"
-}
-
-func (u *UserProvider) CallBack(res common.CallbackResponse) {
- gxlog.CInfo("CallBack res: %v", res)
-}
diff --git a/async/go-client/assembly/bin/load.sh b/async/go-client/assembly/bin/load.sh
deleted file mode 100644
index ffa240b..0000000
--- a/async/go-client/assembly/bin/load.sh
+++ /dev/null
@@ -1,203 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-APP_NAME="APPLICATION_NAME"
-APP_ARGS=""
-SLEEP_INTERVAL=5
-MAX_LIFETIME=4000
-
-PROJECT_HOME=""
-OS_NAME=`uname`
-if [[ ${OS_NAME} != "Windows" ]]; then
- PROJECT_HOME=`pwd`
- PROJECT_HOME=${PROJECT_HOME}"/"
-else
- APP_NAME="APPLICATION_NAME.exe"
-fi
-
-export CONF_CONSUMER_FILE_PATH=${PROJECT_HOME}"TARGET_CONF_FILE"
-export APP_LOG_CONF_FILE=${PROJECT_HOME}"TARGET_LOG_CONF_FILE"
-# export GOTRACEBACK=system
-# export GODEBUG=gctrace=1
-
-usage() {
- echo "Usage: $0 start [conf suffix]"
- echo " $0 stop"
- echo " $0 term"
- echo " $0 restart"
- echo " $0 list"
- echo " $0 monitor"
- echo " $0 crontab"
- exit
-}
-
-start() {
- arg=$1
- if [ "$arg" = "" ];then
- echo "No registry type! Default client.yml!"
- else
- export CONF_CONSUMER_FILE_PATH=${CONF_CONSUMER_FILE_PATH//\.yml/\_$arg\.yml}
- fi
- if [ ! -f "${CONF_CONSUMER_FILE_PATH}" ];then
- echo $CONF_CONSUMER_FILE_PATH" is not existing!"
- return
- fi
- APP_LOG_PATH=${PROJECT_HOME}"logs/"
- mkdir -p ${APP_LOG_PATH}
- APP_BIN=${PROJECT_HOME}sbin/${APP_NAME}
- chmod u+x ${APP_BIN}
- # CMD="nohup ${APP_BIN} ${APP_ARGS} >>${APP_NAME}.nohup.out 2>&1 &"
- CMD="${APP_BIN}"
- eval ${CMD}
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- CUR=`date +%FT%T`
- if [ "${PID}" != "" ]; then
- for p in ${PID}
- do
- echo "start ${APP_NAME} ( pid =" ${p} ") at " ${CUR}
- done
- fi
-}
-
-stop() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -SIGINT ${APP_NAME} ( pid =" ${ps} ")"
- kill -2 ${ps}
- done
- fi
-}
-
-
-term() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -9 ${APP_NAME} ( pid =" ${ps} ")"
- kill -9 ${ps}
- done
- fi
-}
-
-list() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s\n", $1, $2, $9, $10)}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s,%s\n", $1, $4, $6, $7, $8)}'`
- fi
-
- if [ "${PID}" != "" ]; then
- echo "list ${APP_NAME}"
-
- if [[ ${OS_NAME} == "Linux" || ${OS_NAME} == "Darwin" ]]; then
- echo "index: user, pid, start, duration"
- else
- echo "index: PID, WINPID, UID, STIME, COMMAND"
- fi
- idx=0
- for ps in ${PID}
- do
- echo "${idx}: ${ps}"
- ((idx ++))
- done
- fi
-}
-
-monitor() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- done
-}
-
-crontab() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- if [[ ${LIFE} -gt ${MAX_LIFETIME} ]]; then
- kill -9 ${PID}
- fi
- done
-}
-
-opt=$1
-case C"$opt" in
- Cstart)
- start $2
- ;;
- Cstop)
- stop
- ;;
- Cterm)
- term
- ;;
- Crestart)
- term
- start $2
- ;;
- Clist)
- list
- ;;
- Cmonitor)
- monitor
- ;;
- Ccrontab)
- crontab
- ;;
- C*)
- usage
- ;;
-esac
-
diff --git a/async/go-client/assembly/common/app.properties b/async/go-client/assembly/common/app.properties
deleted file mode 100644
index e10868f..0000000
--- a/async/go-client/assembly/common/app.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-export TARGET_EXEC_NAME="user_info_client"
-# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
-export BUILD_PACKAGE="app"
-
-export TARGET_CONF_FILE="conf/client.yml"
-export TARGET_LOG_CONF_FILE="conf/log.yml"
diff --git a/async/go-client/assembly/common/build.sh b/async/go-client/assembly/common/build.sh
deleted file mode 100644
index d38f889..0000000
--- a/async/go-client/assembly/common/build.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-rm -rf target/
-
-PROJECT_HOME=`pwd`
-TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
-
-TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
-if [[ ${GOOS} == "windows" ]]; then
- TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
-fi
-TARGET_NAME=${TARGET_FOLDER}/${TARGET_SBIN_NAME}
-if [[ $PROFILE == "dev" || $PROFILE == "test" ]]; then
- # GFLAGS=-gcflags "-N -l" -race -x -v # -x会把go build的详细过程输出
- # GFLAGS=-gcflags "-N -l" -race -v
- # GFLAGS="-gcflags \"-N -l\" -v"
- cd ${BUILD_PACKAGE} && GOOS=$GOOS GOARCH=$GOARCH GO111MODULE=on go build -gcflags "-N -l" -x -v -i -o ${TARGET_NAME} && cd -
-else
- # -s去掉符号表(然后panic时候的stack trace就没有任何文件名/行号信息了,这个等价于普通C/C++程序被strip的效果),
- # -w去掉DWARF调试信息,得到的程序就不能用gdb调试了。-s和-w也可以分开使用,一般来说如果不打算用gdb调试,
- # -w基本没啥损失。-s的损失就有点大了。
- cd ${BUILD_PACKAGE} && GOOS=$GOOS GOARCH=$GOARCH GO111MODULE=on go build -ldflags "-w" -x -v -i -o ${TARGET_NAME} && cd -
-fi
-
-TAR_NAME=${TARGET_EXEC_NAME}-${version}-`date "+%Y%m%d-%H%M"`-${PROFILE}
-
-mkdir -p ${TARGET_FOLDER}/${TAR_NAME}
-
-SBIN_DIR=${TARGET_FOLDER}/${TAR_NAME}/sbin
-BIN_DIR=${TARGET_FOLDER}/${TAR_NAME}
-CONF_DIR=${TARGET_FOLDER}/${TAR_NAME}/conf
-
-mkdir -p ${SBIN_DIR}
-mkdir -p ${CONF_DIR}
-
-mv ${TARGET_NAME} ${SBIN_DIR}
-cp -r assembly/bin ${BIN_DIR}
-cd ${BIN_DIR}/bin/ && mv load.sh load_${TARGET_EXEC_NAME}.sh && cd -
-
-platform=$(uname)
-# modify APPLICATION_NAME
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-fi
-
-# modify TARGET_CONF_FILE
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-# modify TARGET_LOG_CONF_FILE
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-cp -r profiles/${PROFILE}/* ${CONF_DIR}
-
-cd ${TARGET_FOLDER}
-
-tar czf ${TAR_NAME}.tar.gz ${TAR_NAME}/*
-
diff --git a/async/go-client/assembly/linux/dev.sh b/async/go-client/assembly/linux/dev.sh
deleted file mode 100644
index eada737..0000000
--- a/async/go-client/assembly/linux/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="dev"
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/linux/release.sh b/async/go-client/assembly/linux/release.sh
deleted file mode 100644
index 10eb3d7..0000000
--- a/async/go-client/assembly/linux/release.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/linux/test.sh b/async/go-client/assembly/linux/test.sh
deleted file mode 100644
index 78b650c..0000000
--- a/async/go-client/assembly/linux/test.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/mac/dev.sh b/async/go-client/assembly/mac/dev.sh
deleted file mode 100644
index c828476..0000000
--- a/async/go-client/assembly/mac/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="dev"
-
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/mac/release.sh b/async/go-client/assembly/mac/release.sh
deleted file mode 100644
index 91c2dfe..0000000
--- a/async/go-client/assembly/mac/release.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/mac/test.sh b/async/go-client/assembly/mac/test.sh
deleted file mode 100644
index a7853f5..0000000
--- a/async/go-client/assembly/mac/test.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/windows/dev.sh b/async/go-client/assembly/windows/dev.sh
deleted file mode 100644
index 6487b30..0000000
--- a/async/go-client/assembly/windows/dev.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="dev"
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/windows/release.sh b/async/go-client/assembly/windows/release.sh
deleted file mode 100644
index 21af573..0000000
--- a/async/go-client/assembly/windows/release.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/assembly/windows/test.sh b/async/go-client/assembly/windows/test.sh
deleted file mode 100644
index 2104da8..0000000
--- a/async/go-client/assembly/windows/test.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-client/profiles/dev/client.yml b/async/go-client/profiles/dev/client.yml
deleted file mode 100644
index de9224c..0000000
--- a/async/go-client/profiles/dev/client.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-# dubbo client yaml configure file
-
-
-check: true
-# client
-request_timeout : "3s"
-# connect timeout
-connect_timeout : "3s"
-
-# application config
-application:
- organization : "ikurento.com"
- name : "BDTService"
- module : "dubbogo user-info client"
- version : "0.0.1"
- owner : "ZX"
- environment : "dev"
-
-registries :
- "hangzhouzk":
- protocol: "zookeeper"
- timeout : "3s"
- address: "127.0.0.1:2181"
- username: ""
- password: ""
-
-references:
- "UserProvider":
- # 可以指定多个registry,使用逗号隔开;不指定默认向所有注册中心注册
- registry: "hangzhouzk"
- protocol : "dubbo"
- interface : "com.ikurento.user.UserProvider"
- cluster: "failover"
- methods :
- - name: "GetUser"
- retries: 3
- async : true
-
-protocol_conf:
- dubbo:
- reconnect_interval: 0
- connection_number: 2
- heartbeat_period: "5s"
- session_timeout: "180s"
- pool_size: 64
- pool_ttl: 600
- getty_session_param:
- compress_encoding: false
- tcp_no_delay: true
- tcp_keep_alive: true
- keep_alive_period: "120s"
- tcp_r_buf_size: 262144
- tcp_w_buf_size: 65536
- pkg_wq_size: 512
- tcp_read_timeout: "1s"
- tcp_write_timeout: "5s"
- wait_timeout: "1s"
- max_msg_len: 10240
- session_name: "client"
diff --git a/async/go-client/profiles/dev/log.yml b/async/go-client/profiles/dev/log.yml
deleted file mode 100644
index 3ed242d..0000000
--- a/async/go-client/profiles/dev/log.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-level: "debug"
-development: true
-disableCaller: false
-disableStacktrace: false
-sampling:
-encoding: "console"
-
-# encoder
-encoderConfig:
- messageKey: "message"
- levelKey: "level"
- timeKey: "time"
- nameKey: "logger"
- callerKey: "caller"
- stacktraceKey: "stacktrace"
- lineEnding: ""
- levelEncoder: "capitalColor"
- timeEncoder: "iso8601"
- durationEncoder: "seconds"
- callerEncoder: "short"
- nameEncoder: ""
-
-outputPaths:
- - "stderr"
-errorOutputPaths:
- - "stderr"
-initialFields:
diff --git a/async/go-server/app/server.go b/async/go-server/app/server.go
deleted file mode 100644
index 3cae749..0000000
--- a/async/go-server/app/server.go
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "fmt"
- "os"
- "os/signal"
- "syscall"
- "time"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- _ "github.com/apache/dubbo-go/cluster/cluster_impl"
- _ "github.com/apache/dubbo-go/cluster/loadbalance"
- "github.com/apache/dubbo-go/common/logger"
- _ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
- "github.com/apache/dubbo-go/config"
- _ "github.com/apache/dubbo-go/config_center/zookeeper"
- _ "github.com/apache/dubbo-go/filter/filter_impl"
- _ "github.com/apache/dubbo-go/protocol/dubbo"
- _ "github.com/apache/dubbo-go/registry/protocol"
- _ "github.com/apache/dubbo-go/registry/zookeeper"
-)
-
-var (
- survivalTimeout = int(3e9)
-)
-
-// they are necessary:
-// export CONF_PROVIDER_FILE_PATH="xxx"
-// export APP_LOG_CONF_FILE="xxx"
-func main() {
-
- hessian.RegisterPOJO(&User{})
- config.Load()
-
- initSignal()
-}
-
-func initSignal() {
- signals := make(chan os.Signal, 1)
- // It is not possible to block SIGKILL or syscall.SIGSTOP
- signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
- for {
- sig := <-signals
- logger.Infof("get signal %s", sig.String())
- switch sig {
- case syscall.SIGHUP:
- // reload()
- default:
- time.AfterFunc(time.Duration(survivalTimeout), func() {
- logger.Warnf("app exit now by force...")
- os.Exit(1)
- })
-
- // The program exits normally or timeout forcibly exits.
- fmt.Println("provider app exit now...")
- return
- }
- }
-}
diff --git a/async/go-server/app/user.go b/async/go-server/app/user.go
deleted file mode 100644
index 89fa126..0000000
--- a/async/go-server/app/user.go
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "time"
-)
-
-import (
- "github.com/dubbogo/gost/log"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/config"
-)
-
-func init() {
- config.SetProviderService(new(UserProvider))
- // ------for hessian2------
- hessian.RegisterPOJO(&User{})
-}
-
-type User struct {
- Id string
- Name string
- Age int32
- Time time.Time
-}
-
-type UserProvider struct {
-}
-
-func (u *UserProvider) GetUser(ctx context.Context, req []interface{}) (*User, error) {
- gxlog.CInfo("req:%#v", req)
- rsp := User{"A001", "Alex Stocks", 18, time.Now()}
- gxlog.CInfo("rsp:%#v", rsp)
- return &rsp, nil
-}
-
-func (u *UserProvider) Reference() string {
- return "UserProvider"
-}
-
-func (u User) JavaClassName() string {
- return "com.ikurento.user.User"
-}
diff --git a/async/go-server/assembly/bin/load.sh b/async/go-server/assembly/bin/load.sh
deleted file mode 100644
index 90077c2..0000000
--- a/async/go-server/assembly/bin/load.sh
+++ /dev/null
@@ -1,151 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-APP_NAME="APPLICATION_NAME"
-APP_ARGS=""
-
-
-PROJECT_HOME=""
-OS_NAME=`uname`
-if [[ ${OS_NAME} != "Windows" ]]; then
- PROJECT_HOME=`pwd`
- PROJECT_HOME=${PROJECT_HOME}"/"
-fi
-
-export CONF_PROVIDER_FILE_PATH=${PROJECT_HOME}"TARGET_CONF_FILE"
-export APP_LOG_CONF_FILE=${PROJECT_HOME}"TARGET_LOG_CONF_FILE"
-
-usage() {
- echo "Usage: $0 start [conf suffix]"
- echo " $0 stop"
- echo " $0 term"
- echo " $0 restart"
- echo " $0 list"
- echo " $0 monitor"
- echo " $0 crontab"
- exit
-}
-
-start() {
- arg=$1
- if [ "$arg" = "" ];then
- echo "No registry type! Default server.yml!"
- else
- export CONF_PROVIDER_FILE_PATH=${CONF_PROVIDER_FILE_PATH//\.yml/\_$arg\.yml}
- fi
- if [ ! -f "${CONF_PROVIDER_FILE_PATH}" ];then
- echo $CONF_PROVIDER_FILE_PATH" is not existing!"
- return
- fi
- APP_LOG_PATH="${PROJECT_HOME}logs/"
- mkdir -p ${APP_LOG_PATH}
- APP_BIN=${PROJECT_HOME}sbin/${APP_NAME}
- chmod u+x ${APP_BIN}
- # CMD="nohup ${APP_BIN} ${APP_ARGS} >>${APP_NAME}.nohup.out 2>&1 &"
- CMD="${APP_BIN}"
- eval ${CMD}
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- CUR=`date +%FT%T`
- if [ "${PID}" != "" ]; then
- for p in ${PID}
- do
- echo "start ${APP_NAME} ( pid =" ${p} ") at " ${CUR}
- done
- fi
-}
-
-stop() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -SIGINT ${APP_NAME} ( pid =" ${ps} ")"
- kill -2 ${ps}
- done
- fi
-}
-
-
-term() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -9 ${APP_NAME} ( pid =" ${ps} ")"
- kill -9 ${ps}
- done
- fi
-}
-
-list() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s\n", $1, $2, $9, $10)}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s,%s\n", $1, $4, $6, $7, $8)}'`
- fi
-
- if [ "${PID}" != "" ]; then
- echo "list ${APP_NAME}"
-
- if [[ ${OS_NAME} == "Linux" || ${OS_NAME} == "Darwin" ]]; then
- echo "index: user, pid, start, duration"
- else
- echo "index: PID, WINPID, UID, STIME, COMMAND"
- fi
- idx=0
- for ps in ${PID}
- do
- echo "${idx}: ${ps}"
- ((idx ++))
- done
- fi
-}
-
-opt=$1
-case C"$opt" in
- Cstart)
- start $2
- ;;
- Cstop)
- stop
- ;;
- Cterm)
- term
- ;;
- Crestart)
- term
- start $2
- ;;
- Clist)
- list
- ;;
- C*)
- usage
- ;;
-esac
-
diff --git a/async/go-server/assembly/common/app.properties b/async/go-server/assembly/common/app.properties
deleted file mode 100644
index 1f0827e..0000000
--- a/async/go-server/assembly/common/app.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-TARGET_EXEC_NAME="user_info_server"
-# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
-BUILD_PACKAGE="app"
-
-TARGET_CONF_FILE="conf/server.yml"
-TARGET_LOG_CONF_FILE="conf/log.yml"
diff --git a/async/go-server/assembly/common/build.sh b/async/go-server/assembly/common/build.sh
deleted file mode 100644
index d90d026..0000000
--- a/async/go-server/assembly/common/build.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-rm -rf target/
-
-PROJECT_HOME=`pwd`
-TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
-
-TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
-if [[ ${GOOS} == "windows" ]]; then
- TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
-fi
-TARGET_NAME=${TARGET_FOLDER}/${TARGET_SBIN_NAME}
-if [[ $PROFILE = "test" ]]; then
- # GFLAGS=-gcflags "-N -l" -race -x -v # -x会把go build的详细过程输出
- # GFLAGS=-gcflags "-N -l" -race -v
- # GFLAGS="-gcflags \"-N -l\" -v"
- cd ${BUILD_PACKAGE} && GO111MODULE=on go build -gcflags "-N -l" -x -v -i -o ${TARGET_NAME} && cd -
-else
- # -s去掉符号表(然后panic时候的stack trace就没有任何文件名/行号信息了,这个等价于普通C/C++程序被strip的效果),
- # -w去掉DWARF调试信息,得到的程序就不能用gdb调试了。-s和-w也可以分开使用,一般来说如果不打算用gdb调试,
- # -w基本没啥损失。-s的损失就有点大了。
- cd ${BUILD_PACKAGE} && GO111MODULE=on go build -ldflags "-w" -x -v -i -o ${TARGET_NAME} && cd -
-fi
-
-TAR_NAME=${TARGET_EXEC_NAME}-${version}-`date "+%Y%m%d-%H%M"`-${PROFILE}
-
-mkdir -p ${TARGET_FOLDER}/${TAR_NAME}
-
-SBIN_DIR=${TARGET_FOLDER}/${TAR_NAME}/sbin
-BIN_DIR=${TARGET_FOLDER}/${TAR_NAME}
-CONF_DIR=${TARGET_FOLDER}/${TAR_NAME}/conf
-
-mkdir -p ${SBIN_DIR}
-mkdir -p ${CONF_DIR}
-
-mv ${TARGET_NAME} ${SBIN_DIR}
-cp -r assembly/bin ${BIN_DIR}
-# modify APPLICATION_NAME
-# OS=`uname`
-# if [[ $OS=="Darwin" ]]; then
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-fi
-# modify TARGET_CONF_FILE
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-# modify TARGET_LOG_CONF_FILE
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-cp -r profiles/${PROFILE}/* ${CONF_DIR}
-
-cd ${TARGET_FOLDER}
-
-tar czf ${TAR_NAME}.tar.gz ${TAR_NAME}/*
-
diff --git a/async/go-server/assembly/linux/dev.sh b/async/go-server/assembly/linux/dev.sh
deleted file mode 100644
index d830ac9..0000000
--- a/async/go-server/assembly/linux/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/assembly/linux/release.sh b/async/go-server/assembly/linux/release.sh
deleted file mode 100644
index 9930380..0000000
--- a/async/go-server/assembly/linux/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/assembly/linux/test.sh b/async/go-server/assembly/linux/test.sh
deleted file mode 100644
index 87144bb..0000000
--- a/async/go-server/assembly/linux/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/assembly/mac/dev.sh b/async/go-server/assembly/mac/dev.sh
deleted file mode 100644
index 3a7659b..0000000
--- a/async/go-server/assembly/mac/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/assembly/mac/release.sh b/async/go-server/assembly/mac/release.sh
deleted file mode 100644
index 1c4bce4..0000000
--- a/async/go-server/assembly/mac/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/assembly/mac/test.sh b/async/go-server/assembly/mac/test.sh
deleted file mode 100644
index 69206e3..0000000
--- a/async/go-server/assembly/mac/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
-
diff --git a/async/go-server/assembly/windows/dev.sh b/async/go-server/assembly/windows/dev.sh
deleted file mode 100644
index 011fb41..0000000
--- a/async/go-server/assembly/windows/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/assembly/windows/release.sh b/async/go-server/assembly/windows/release.sh
deleted file mode 100644
index 679a26a..0000000
--- a/async/go-server/assembly/windows/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/assembly/windows/test.sh b/async/go-server/assembly/windows/test.sh
deleted file mode 100644
index 4a36de0..0000000
--- a/async/go-server/assembly/windows/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/async/go-server/profiles/dev/log.yml b/async/go-server/profiles/dev/log.yml
deleted file mode 100644
index 3ed242d..0000000
--- a/async/go-server/profiles/dev/log.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-level: "debug"
-development: true
-disableCaller: false
-disableStacktrace: false
-sampling:
-encoding: "console"
-
-# encoder
-encoderConfig:
- messageKey: "message"
- levelKey: "level"
- timeKey: "time"
- nameKey: "logger"
- callerKey: "caller"
- stacktraceKey: "stacktrace"
- lineEnding: ""
- levelEncoder: "capitalColor"
- timeEncoder: "iso8601"
- durationEncoder: "seconds"
- callerEncoder: "short"
- nameEncoder: ""
-
-outputPaths:
- - "stderr"
-errorOutputPaths:
- - "stderr"
-initialFields:
diff --git a/async/go-server/profiles/dev/server.yml b/async/go-server/profiles/dev/server.yml
deleted file mode 100644
index 13fbf7c..0000000
--- a/async/go-server/profiles/dev/server.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-# dubbo server yaml configure file
-application:
- organization : "ikurento.com"
- name : "BDTService"
- module : "dubbogo user-info server"
- version : "0.0.1"
- owner : "ZX"
- environment : "dev"
-
-registries :
- "demoZk":
- protocol: "zookeeper"
- timeout : "3s"
- address: "127.0.0.1:2181"
-
-services:
- "UserProvider":
- # 可以指定多个registry,使用逗号隔开;不指定默认向所有注册中心注册
- registry: "demoZk"
- # 相当于dubbo.xml中的interface
- interface : "com.ikurento.user.UserProvider"
- loadbalance: "random"
- warmup: "100"
- cluster: "failover"
- methods:
- - name: "GetUser"
- retries: 1
- loadbalance: "random"
-
-protocols:
- "dubbo":
- name: "dubbo"
- port: 20000
-
-
-protocol_conf:
- dubbo:
- session_number: 700
- session_timeout: "180s"
- getty_session_param:
- compress_encoding: false
- tcp_no_delay: true
- tcp_keep_alive: true
- keep_alive_period: "120s"
- tcp_r_buf_size: 262144
- tcp_w_buf_size: 65536
- pkg_rq_size: 1024
- pkg_wq_size: 512
- tcp_read_timeout: "1s"
- tcp_write_timeout: "5s"
- wait_timeout: "1s"
- max_msg_len: 1024
- session_name: "server"
diff --git a/ci.sh b/ci.sh
deleted file mode 100644
index 23bcad7..0000000
--- a/ci.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-allSamples=`find .|grep /assembly/linux/dev.sh | awk '{gsub("/assembly/linux/dev.sh","");print}'`
-currentFolder=`pwd`
-
-for singleSample in $allSamples
-do
-
-cd $singleSample
-
-sh ./assembly/linux/dev.sh
-
-cd $currentFolder
-
-done
\ No newline at end of file
diff --git a/configcenter/apollo/README.md b/configcenter/apollo/README.md
deleted file mode 100644
index 7f986f9..0000000
--- a/configcenter/apollo/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-### 1.Run apollo as config center
-
-* download this folder as below
-
-[docker-quick-start](https://github.com/ctripcorp/apollo/tree/master/scripts/docker-quick-start)
-
-* enter docker-quick-start folder and run
-
-```docker-compose up```
-
-### 2.Run java server & java client following [README](https://github.com/dubbogo/dubbo-samples/blob/master/golang/README.md)
-
-* Set config item **app.id** in /resources/META-INF/app.properties like
-
-```
-app.id=application
-```
-
-* Set apollo meta url in /resources/META-INF/spring/dubbo.provider.xml and /resources/META-INF/spring/dubbo.consumer.xml like
-
-```
-<dubbo:config-center protocol="apollo" address="1.1.1.1:8080"/>
-```
-
-Build and run it , enjoy.
-
-### 3.Run java server & go client
-
-Stop java client. Copy go client configuration file [dubbo.properties](https://github.com/dubbogo/dubbo-samples/golang/blob/master/configcenter/apollo/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties) as
-namespace dubbo.properties in apollo.
-
-Then start go client following [README](https://github.com/dubbogo/dubbo-samples/blob/master/golang/README.md).
-
-### 4.Run go server
-
-The same as step 3. Copy go server configuration file [dubbo.properties](https://github.com/dubbogo/dubbo-samples/blob/master/golang/configcenter/apollo/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties) as
-namespace dubbo.properties in apollo.
-
diff --git a/configcenter/apollo/dubbo/go-client/app/client.go b/configcenter/apollo/dubbo/go-client/app/client.go
deleted file mode 100644
index 0f7b9f6..0000000
--- a/configcenter/apollo/dubbo/go-client/app/client.go
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "os/signal"
- "syscall"
- "time"
-)
-
-import (
- "github.com/dubbogo/gost/log"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/common/logger"
- _ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
- "github.com/apache/dubbo-go/config"
- _ "github.com/apache/dubbo-go/protocol/dubbo"
- _ "github.com/apache/dubbo-go/registry/protocol"
-
- _ "github.com/apache/dubbo-go/filter/filter_impl"
-
- _ "github.com/apache/dubbo-go/cluster/cluster_impl"
- _ "github.com/apache/dubbo-go/cluster/loadbalance"
- _ "github.com/apache/dubbo-go/config_center/apollo"
- _ "github.com/apache/dubbo-go/registry/zookeeper"
-)
-
-var (
- survivalTimeout int = 10e9
-)
-
-// they are necessary:
-// export CONF_CONSUMER_FILE_PATH="xxx"
-// export APP_LOG_CONF_FILE="xxx"
-func main() {
- hessian.RegisterPOJO(&User{})
- config.Load()
- time.Sleep(1e9)
-
- gxlog.CInfo("\n\n\nstart to test dubbo")
- user := &User{}
- err := userProvider.GetUser(context.TODO(), []interface{}{"A001"}, user)
- if err != nil {
- panic(err)
- }
- gxlog.CInfo("response result: %v\n", user)
- initSignal()
-}
-
-func initSignal() {
- signals := make(chan os.Signal, 1)
- // It is not possible to block SIGKILL or syscall.SIGSTOP
- signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGHUP,
- syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
- for {
- sig := <-signals
- logger.Infof("get signal %s", sig.String())
- switch sig {
- case syscall.SIGHUP:
- // reload()
- default:
- time.AfterFunc(time.Duration(survivalTimeout), func() {
- logger.Warnf("app exit now by force...")
- os.Exit(1)
- })
-
- // The program exits normally or timeout forcibly exits.
- fmt.Println("app exit now...")
- return
- }
- }
-}
diff --git a/configcenter/apollo/dubbo/go-client/app/user.go b/configcenter/apollo/dubbo/go-client/app/user.go
deleted file mode 100644
index ff4486f..0000000
--- a/configcenter/apollo/dubbo/go-client/app/user.go
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "time"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/config"
-)
-
-var userProvider = new(UserProvider)
-
-func init() {
- config.SetConsumerService(userProvider)
- hessian.RegisterPOJO(&User{})
-}
-
-type User struct {
- Id string
- Name string
- Age int32
- Time time.Time
-}
-
-type UserProvider struct {
- GetUser func(ctx context.Context, req []interface{}, rsp *User) error
-}
-
-func (u *UserProvider) Reference() string {
- return "UserProvider"
-}
-
-func (User) JavaClassName() string {
- return "com.ikurento.user.User"
-}
diff --git a/configcenter/apollo/dubbo/go-client/assembly/bin/load.sh b/configcenter/apollo/dubbo/go-client/assembly/bin/load.sh
deleted file mode 100644
index ffa240b..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/bin/load.sh
+++ /dev/null
@@ -1,203 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-APP_NAME="APPLICATION_NAME"
-APP_ARGS=""
-SLEEP_INTERVAL=5
-MAX_LIFETIME=4000
-
-PROJECT_HOME=""
-OS_NAME=`uname`
-if [[ ${OS_NAME} != "Windows" ]]; then
- PROJECT_HOME=`pwd`
- PROJECT_HOME=${PROJECT_HOME}"/"
-else
- APP_NAME="APPLICATION_NAME.exe"
-fi
-
-export CONF_CONSUMER_FILE_PATH=${PROJECT_HOME}"TARGET_CONF_FILE"
-export APP_LOG_CONF_FILE=${PROJECT_HOME}"TARGET_LOG_CONF_FILE"
-# export GOTRACEBACK=system
-# export GODEBUG=gctrace=1
-
-usage() {
- echo "Usage: $0 start [conf suffix]"
- echo " $0 stop"
- echo " $0 term"
- echo " $0 restart"
- echo " $0 list"
- echo " $0 monitor"
- echo " $0 crontab"
- exit
-}
-
-start() {
- arg=$1
- if [ "$arg" = "" ];then
- echo "No registry type! Default client.yml!"
- else
- export CONF_CONSUMER_FILE_PATH=${CONF_CONSUMER_FILE_PATH//\.yml/\_$arg\.yml}
- fi
- if [ ! -f "${CONF_CONSUMER_FILE_PATH}" ];then
- echo $CONF_CONSUMER_FILE_PATH" is not existing!"
- return
- fi
- APP_LOG_PATH=${PROJECT_HOME}"logs/"
- mkdir -p ${APP_LOG_PATH}
- APP_BIN=${PROJECT_HOME}sbin/${APP_NAME}
- chmod u+x ${APP_BIN}
- # CMD="nohup ${APP_BIN} ${APP_ARGS} >>${APP_NAME}.nohup.out 2>&1 &"
- CMD="${APP_BIN}"
- eval ${CMD}
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- CUR=`date +%FT%T`
- if [ "${PID}" != "" ]; then
- for p in ${PID}
- do
- echo "start ${APP_NAME} ( pid =" ${p} ") at " ${CUR}
- done
- fi
-}
-
-stop() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -SIGINT ${APP_NAME} ( pid =" ${ps} ")"
- kill -2 ${ps}
- done
- fi
-}
-
-
-term() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -9 ${APP_NAME} ( pid =" ${ps} ")"
- kill -9 ${ps}
- done
- fi
-}
-
-list() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s\n", $1, $2, $9, $10)}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s,%s\n", $1, $4, $6, $7, $8)}'`
- fi
-
- if [ "${PID}" != "" ]; then
- echo "list ${APP_NAME}"
-
- if [[ ${OS_NAME} == "Linux" || ${OS_NAME} == "Darwin" ]]; then
- echo "index: user, pid, start, duration"
- else
- echo "index: PID, WINPID, UID, STIME, COMMAND"
- fi
- idx=0
- for ps in ${PID}
- do
- echo "${idx}: ${ps}"
- ((idx ++))
- done
- fi
-}
-
-monitor() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- done
-}
-
-crontab() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- if [[ ${LIFE} -gt ${MAX_LIFETIME} ]]; then
- kill -9 ${PID}
- fi
- done
-}
-
-opt=$1
-case C"$opt" in
- Cstart)
- start $2
- ;;
- Cstop)
- stop
- ;;
- Cterm)
- term
- ;;
- Crestart)
- term
- start $2
- ;;
- Clist)
- list
- ;;
- Cmonitor)
- monitor
- ;;
- Ccrontab)
- crontab
- ;;
- C*)
- usage
- ;;
-esac
-
diff --git a/configcenter/apollo/dubbo/go-client/assembly/common/app.properties b/configcenter/apollo/dubbo/go-client/assembly/common/app.properties
deleted file mode 100644
index e10868f..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/common/app.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-export TARGET_EXEC_NAME="user_info_client"
-# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
-export BUILD_PACKAGE="app"
-
-export TARGET_CONF_FILE="conf/client.yml"
-export TARGET_LOG_CONF_FILE="conf/log.yml"
diff --git a/configcenter/apollo/dubbo/go-client/assembly/common/build.sh b/configcenter/apollo/dubbo/go-client/assembly/common/build.sh
deleted file mode 100644
index d38f889..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/common/build.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-rm -rf target/
-
-PROJECT_HOME=`pwd`
-TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
-
-TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
-if [[ ${GOOS} == "windows" ]]; then
- TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
-fi
-TARGET_NAME=${TARGET_FOLDER}/${TARGET_SBIN_NAME}
-if [[ $PROFILE == "dev" || $PROFILE == "test" ]]; then
- # GFLAGS=-gcflags "-N -l" -race -x -v # -x会把go build的详细过程输出
- # GFLAGS=-gcflags "-N -l" -race -v
- # GFLAGS="-gcflags \"-N -l\" -v"
- cd ${BUILD_PACKAGE} && GOOS=$GOOS GOARCH=$GOARCH GO111MODULE=on go build -gcflags "-N -l" -x -v -i -o ${TARGET_NAME} && cd -
-else
- # -s去掉符号表(然后panic时候的stack trace就没有任何文件名/行号信息了,这个等价于普通C/C++程序被strip的效果),
- # -w去掉DWARF调试信息,得到的程序就不能用gdb调试了。-s和-w也可以分开使用,一般来说如果不打算用gdb调试,
- # -w基本没啥损失。-s的损失就有点大了。
- cd ${BUILD_PACKAGE} && GOOS=$GOOS GOARCH=$GOARCH GO111MODULE=on go build -ldflags "-w" -x -v -i -o ${TARGET_NAME} && cd -
-fi
-
-TAR_NAME=${TARGET_EXEC_NAME}-${version}-`date "+%Y%m%d-%H%M"`-${PROFILE}
-
-mkdir -p ${TARGET_FOLDER}/${TAR_NAME}
-
-SBIN_DIR=${TARGET_FOLDER}/${TAR_NAME}/sbin
-BIN_DIR=${TARGET_FOLDER}/${TAR_NAME}
-CONF_DIR=${TARGET_FOLDER}/${TAR_NAME}/conf
-
-mkdir -p ${SBIN_DIR}
-mkdir -p ${CONF_DIR}
-
-mv ${TARGET_NAME} ${SBIN_DIR}
-cp -r assembly/bin ${BIN_DIR}
-cd ${BIN_DIR}/bin/ && mv load.sh load_${TARGET_EXEC_NAME}.sh && cd -
-
-platform=$(uname)
-# modify APPLICATION_NAME
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-fi
-
-# modify TARGET_CONF_FILE
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-# modify TARGET_LOG_CONF_FILE
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-cp -r profiles/${PROFILE}/* ${CONF_DIR}
-
-cd ${TARGET_FOLDER}
-
-tar czf ${TAR_NAME}.tar.gz ${TAR_NAME}/*
-
diff --git a/configcenter/apollo/dubbo/go-client/assembly/linux/dev.sh b/configcenter/apollo/dubbo/go-client/assembly/linux/dev.sh
deleted file mode 100644
index eada737..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/linux/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="dev"
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/linux/release.sh b/configcenter/apollo/dubbo/go-client/assembly/linux/release.sh
deleted file mode 100644
index 10eb3d7..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/linux/release.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/linux/test.sh b/configcenter/apollo/dubbo/go-client/assembly/linux/test.sh
deleted file mode 100644
index 78b650c..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/linux/test.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/mac/dev.sh b/configcenter/apollo/dubbo/go-client/assembly/mac/dev.sh
deleted file mode 100644
index c828476..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/mac/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="dev"
-
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/mac/release.sh b/configcenter/apollo/dubbo/go-client/assembly/mac/release.sh
deleted file mode 100644
index 91c2dfe..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/mac/release.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/mac/test.sh b/configcenter/apollo/dubbo/go-client/assembly/mac/test.sh
deleted file mode 100644
index a7853f5..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/mac/test.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/windows/dev.sh b/configcenter/apollo/dubbo/go-client/assembly/windows/dev.sh
deleted file mode 100644
index 6487b30..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/windows/dev.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="dev"
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/windows/release.sh b/configcenter/apollo/dubbo/go-client/assembly/windows/release.sh
deleted file mode 100644
index 21af573..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/windows/release.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/assembly/windows/test.sh b/configcenter/apollo/dubbo/go-client/assembly/windows/test.sh
deleted file mode 100644
index 2104da8..0000000
--- a/configcenter/apollo/dubbo/go-client/assembly/windows/test.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-client/profiles/dev/client.yml b/configcenter/apollo/dubbo/go-client/profiles/dev/client.yml
deleted file mode 100644
index 5231483..0000000
--- a/configcenter/apollo/dubbo/go-client/profiles/dev/client.yml
+++ /dev/null
@@ -1,66 +0,0 @@
-# dubbo client yaml configure file
-
-
-check: true
-# client
-request_timeout : "3s"
-# connect timeout
-connect_timeout : "3s"
-
-config_center:
- protocol: apollo
- address: 106.54.227.205:8080
- app_id: testApplication_yang
- cluster: dev
-
-# application config
-application:
- organization : "ikurento.com"
- name : "BDTService"
- module : "dubbogo user-info client"
- version : "0.0.1"
- owner : "ZX"
- environment : "dev"
-
-registries :
- "hangzhouzk":
- protocol: "zookeeper"
- timeout : "3s"
- address: "127.0.0.1:2181"
- username: ""
- password: ""
-
-references:
- "UserProvider":
- # 可以指定多个registry,使用逗号隔开;不指定默认向所有注册中心注册
- registry: "hangzhouzk"
- protocol : "dubbo"
- interface : "com.ikurento.user.UserProvider"
- cluster: "failover"
- methods :
- - name: "GetUser"
- retries: 3
-
-
-protocol_conf:
- dubbo:
- reconnect_interval: 0
- connection_number: 2
- heartbeat_period: "5s"
- session_timeout: "20s"
- pool_size: 64
- pool_ttl: 600
- getty_session_param:
- compress_encoding: false
- tcp_no_delay: true
- tcp_keep_alive: true
- keep_alive_period: "120s"
- tcp_r_buf_size: 262144
- tcp_w_buf_size: 65536
- pkg_rq_size: 1024
- pkg_wq_size: 512
- tcp_read_timeout: "1s"
- tcp_write_timeout: "5s"
- wait_timeout: "1s"
- max_msg_len: 10240
- session_name: "client"
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties b/configcenter/apollo/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties
deleted file mode 100644
index 977381e..0000000
--- a/configcenter/apollo/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-dubbo.service.com.ikurento.user.UserProvider.cluster = failback
-dubbo.service.com.ikurento.user.UserProvider.protocol = myDubbo
-dubbo.protocols.myDubbo.port = 20000
-dubbo.protocols.myDubbo.name = dubbo
diff --git a/configcenter/apollo/dubbo/go-client/profiles/dev/log.yml b/configcenter/apollo/dubbo/go-client/profiles/dev/log.yml
deleted file mode 100644
index 3ed242d..0000000
--- a/configcenter/apollo/dubbo/go-client/profiles/dev/log.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-level: "debug"
-development: true
-disableCaller: false
-disableStacktrace: false
-sampling:
-encoding: "console"
-
-# encoder
-encoderConfig:
- messageKey: "message"
- levelKey: "level"
- timeKey: "time"
- nameKey: "logger"
- callerKey: "caller"
- stacktraceKey: "stacktrace"
- lineEnding: ""
- levelEncoder: "capitalColor"
- timeEncoder: "iso8601"
- durationEncoder: "seconds"
- callerEncoder: "short"
- nameEncoder: ""
-
-outputPaths:
- - "stderr"
-errorOutputPaths:
- - "stderr"
-initialFields:
diff --git a/configcenter/apollo/dubbo/go-server/app/server.go b/configcenter/apollo/dubbo/go-server/app/server.go
deleted file mode 100644
index 1cad050..0000000
--- a/configcenter/apollo/dubbo/go-server/app/server.go
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "fmt"
- "os"
- "os/signal"
- "syscall"
- "time"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- _ "github.com/apache/dubbo-go/cluster/cluster_impl"
- _ "github.com/apache/dubbo-go/cluster/loadbalance"
- "github.com/apache/dubbo-go/common/logger"
- _ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
- "github.com/apache/dubbo-go/config"
- _ "github.com/apache/dubbo-go/config_center/apollo"
- _ "github.com/apache/dubbo-go/filter/filter_impl"
- _ "github.com/apache/dubbo-go/protocol/dubbo"
- _ "github.com/apache/dubbo-go/registry/protocol"
- _ "github.com/apache/dubbo-go/registry/zookeeper"
-)
-
-var (
- survivalTimeout = int(3e9)
-)
-
-// they are necessary:
-// export CONF_PROVIDER_FILE_PATH="xxx"
-// export APP_LOG_CONF_FILE="xxx"
-func main() {
-
- hessian.RegisterPOJO(&User{})
- config.Load()
-
- initSignal()
-}
-
-func initSignal() {
- signals := make(chan os.Signal, 1)
- // It is not possible to block SIGKILL or syscall.SIGSTOP
- signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
- for {
- sig := <-signals
- logger.Infof("get signal %s", sig.String())
- switch sig {
- case syscall.SIGHUP:
- // reload()
- default:
- time.AfterFunc(time.Duration(survivalTimeout), func() {
- logger.Warnf("app exit now by force...")
- os.Exit(1)
- })
-
- // The program exits normally or timeout forcibly exits.
- fmt.Println("provider app exit now...")
- return
- }
- }
-}
diff --git a/configcenter/apollo/dubbo/go-server/app/user.go b/configcenter/apollo/dubbo/go-server/app/user.go
deleted file mode 100644
index 89fa126..0000000
--- a/configcenter/apollo/dubbo/go-server/app/user.go
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "time"
-)
-
-import (
- "github.com/dubbogo/gost/log"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/config"
-)
-
-func init() {
- config.SetProviderService(new(UserProvider))
- // ------for hessian2------
- hessian.RegisterPOJO(&User{})
-}
-
-type User struct {
- Id string
- Name string
- Age int32
- Time time.Time
-}
-
-type UserProvider struct {
-}
-
-func (u *UserProvider) GetUser(ctx context.Context, req []interface{}) (*User, error) {
- gxlog.CInfo("req:%#v", req)
- rsp := User{"A001", "Alex Stocks", 18, time.Now()}
- gxlog.CInfo("rsp:%#v", rsp)
- return &rsp, nil
-}
-
-func (u *UserProvider) Reference() string {
- return "UserProvider"
-}
-
-func (u User) JavaClassName() string {
- return "com.ikurento.user.User"
-}
diff --git a/configcenter/apollo/dubbo/go-server/assembly/bin/load.sh b/configcenter/apollo/dubbo/go-server/assembly/bin/load.sh
deleted file mode 100644
index 90077c2..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/bin/load.sh
+++ /dev/null
@@ -1,151 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-APP_NAME="APPLICATION_NAME"
-APP_ARGS=""
-
-
-PROJECT_HOME=""
-OS_NAME=`uname`
-if [[ ${OS_NAME} != "Windows" ]]; then
- PROJECT_HOME=`pwd`
- PROJECT_HOME=${PROJECT_HOME}"/"
-fi
-
-export CONF_PROVIDER_FILE_PATH=${PROJECT_HOME}"TARGET_CONF_FILE"
-export APP_LOG_CONF_FILE=${PROJECT_HOME}"TARGET_LOG_CONF_FILE"
-
-usage() {
- echo "Usage: $0 start [conf suffix]"
- echo " $0 stop"
- echo " $0 term"
- echo " $0 restart"
- echo " $0 list"
- echo " $0 monitor"
- echo " $0 crontab"
- exit
-}
-
-start() {
- arg=$1
- if [ "$arg" = "" ];then
- echo "No registry type! Default server.yml!"
- else
- export CONF_PROVIDER_FILE_PATH=${CONF_PROVIDER_FILE_PATH//\.yml/\_$arg\.yml}
- fi
- if [ ! -f "${CONF_PROVIDER_FILE_PATH}" ];then
- echo $CONF_PROVIDER_FILE_PATH" is not existing!"
- return
- fi
- APP_LOG_PATH="${PROJECT_HOME}logs/"
- mkdir -p ${APP_LOG_PATH}
- APP_BIN=${PROJECT_HOME}sbin/${APP_NAME}
- chmod u+x ${APP_BIN}
- # CMD="nohup ${APP_BIN} ${APP_ARGS} >>${APP_NAME}.nohup.out 2>&1 &"
- CMD="${APP_BIN}"
- eval ${CMD}
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- CUR=`date +%FT%T`
- if [ "${PID}" != "" ]; then
- for p in ${PID}
- do
- echo "start ${APP_NAME} ( pid =" ${p} ") at " ${CUR}
- done
- fi
-}
-
-stop() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -SIGINT ${APP_NAME} ( pid =" ${ps} ")"
- kill -2 ${ps}
- done
- fi
-}
-
-
-term() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -9 ${APP_NAME} ( pid =" ${ps} ")"
- kill -9 ${ps}
- done
- fi
-}
-
-list() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s\n", $1, $2, $9, $10)}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s,%s\n", $1, $4, $6, $7, $8)}'`
- fi
-
- if [ "${PID}" != "" ]; then
- echo "list ${APP_NAME}"
-
- if [[ ${OS_NAME} == "Linux" || ${OS_NAME} == "Darwin" ]]; then
- echo "index: user, pid, start, duration"
- else
- echo "index: PID, WINPID, UID, STIME, COMMAND"
- fi
- idx=0
- for ps in ${PID}
- do
- echo "${idx}: ${ps}"
- ((idx ++))
- done
- fi
-}
-
-opt=$1
-case C"$opt" in
- Cstart)
- start $2
- ;;
- Cstop)
- stop
- ;;
- Cterm)
- term
- ;;
- Crestart)
- term
- start $2
- ;;
- Clist)
- list
- ;;
- C*)
- usage
- ;;
-esac
-
diff --git a/configcenter/apollo/dubbo/go-server/assembly/common/app.properties b/configcenter/apollo/dubbo/go-server/assembly/common/app.properties
deleted file mode 100644
index 1f0827e..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/common/app.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-TARGET_EXEC_NAME="user_info_server"
-# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
-BUILD_PACKAGE="app"
-
-TARGET_CONF_FILE="conf/server.yml"
-TARGET_LOG_CONF_FILE="conf/log.yml"
diff --git a/configcenter/apollo/dubbo/go-server/assembly/common/build.sh b/configcenter/apollo/dubbo/go-server/assembly/common/build.sh
deleted file mode 100644
index d90d026..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/common/build.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-rm -rf target/
-
-PROJECT_HOME=`pwd`
-TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
-
-TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
-if [[ ${GOOS} == "windows" ]]; then
- TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
-fi
-TARGET_NAME=${TARGET_FOLDER}/${TARGET_SBIN_NAME}
-if [[ $PROFILE = "test" ]]; then
- # GFLAGS=-gcflags "-N -l" -race -x -v # -x会把go build的详细过程输出
- # GFLAGS=-gcflags "-N -l" -race -v
- # GFLAGS="-gcflags \"-N -l\" -v"
- cd ${BUILD_PACKAGE} && GO111MODULE=on go build -gcflags "-N -l" -x -v -i -o ${TARGET_NAME} && cd -
-else
- # -s去掉符号表(然后panic时候的stack trace就没有任何文件名/行号信息了,这个等价于普通C/C++程序被strip的效果),
- # -w去掉DWARF调试信息,得到的程序就不能用gdb调试了。-s和-w也可以分开使用,一般来说如果不打算用gdb调试,
- # -w基本没啥损失。-s的损失就有点大了。
- cd ${BUILD_PACKAGE} && GO111MODULE=on go build -ldflags "-w" -x -v -i -o ${TARGET_NAME} && cd -
-fi
-
-TAR_NAME=${TARGET_EXEC_NAME}-${version}-`date "+%Y%m%d-%H%M"`-${PROFILE}
-
-mkdir -p ${TARGET_FOLDER}/${TAR_NAME}
-
-SBIN_DIR=${TARGET_FOLDER}/${TAR_NAME}/sbin
-BIN_DIR=${TARGET_FOLDER}/${TAR_NAME}
-CONF_DIR=${TARGET_FOLDER}/${TAR_NAME}/conf
-
-mkdir -p ${SBIN_DIR}
-mkdir -p ${CONF_DIR}
-
-mv ${TARGET_NAME} ${SBIN_DIR}
-cp -r assembly/bin ${BIN_DIR}
-# modify APPLICATION_NAME
-# OS=`uname`
-# if [[ $OS=="Darwin" ]]; then
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-fi
-# modify TARGET_CONF_FILE
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-# modify TARGET_LOG_CONF_FILE
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-cp -r profiles/${PROFILE}/* ${CONF_DIR}
-
-cd ${TARGET_FOLDER}
-
-tar czf ${TAR_NAME}.tar.gz ${TAR_NAME}/*
-
diff --git a/configcenter/apollo/dubbo/go-server/assembly/linux/dev.sh b/configcenter/apollo/dubbo/go-server/assembly/linux/dev.sh
deleted file mode 100644
index d830ac9..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/linux/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/assembly/linux/release.sh b/configcenter/apollo/dubbo/go-server/assembly/linux/release.sh
deleted file mode 100644
index 9930380..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/linux/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/assembly/linux/test.sh b/configcenter/apollo/dubbo/go-server/assembly/linux/test.sh
deleted file mode 100644
index 87144bb..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/linux/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/assembly/mac/dev.sh b/configcenter/apollo/dubbo/go-server/assembly/mac/dev.sh
deleted file mode 100644
index 3a7659b..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/mac/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/assembly/mac/release.sh b/configcenter/apollo/dubbo/go-server/assembly/mac/release.sh
deleted file mode 100644
index 1c4bce4..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/mac/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/assembly/mac/test.sh b/configcenter/apollo/dubbo/go-server/assembly/mac/test.sh
deleted file mode 100644
index 69206e3..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/mac/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
-
diff --git a/configcenter/apollo/dubbo/go-server/assembly/windows/dev.sh b/configcenter/apollo/dubbo/go-server/assembly/windows/dev.sh
deleted file mode 100644
index 011fb41..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/windows/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/assembly/windows/release.sh b/configcenter/apollo/dubbo/go-server/assembly/windows/release.sh
deleted file mode 100644
index 679a26a..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/windows/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/assembly/windows/test.sh b/configcenter/apollo/dubbo/go-server/assembly/windows/test.sh
deleted file mode 100644
index 4a36de0..0000000
--- a/configcenter/apollo/dubbo/go-server/assembly/windows/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/apollo/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties b/configcenter/apollo/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties
deleted file mode 100644
index 977381e..0000000
--- a/configcenter/apollo/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-dubbo.service.com.ikurento.user.UserProvider.cluster = failback
-dubbo.service.com.ikurento.user.UserProvider.protocol = myDubbo
-dubbo.protocols.myDubbo.port = 20000
-dubbo.protocols.myDubbo.name = dubbo
diff --git a/configcenter/apollo/dubbo/go-server/profiles/dev/log.yml b/configcenter/apollo/dubbo/go-server/profiles/dev/log.yml
deleted file mode 100644
index 3ed242d..0000000
--- a/configcenter/apollo/dubbo/go-server/profiles/dev/log.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-level: "debug"
-development: true
-disableCaller: false
-disableStacktrace: false
-sampling:
-encoding: "console"
-
-# encoder
-encoderConfig:
- messageKey: "message"
- levelKey: "level"
- timeKey: "time"
- nameKey: "logger"
- callerKey: "caller"
- stacktraceKey: "stacktrace"
- lineEnding: ""
- levelEncoder: "capitalColor"
- timeEncoder: "iso8601"
- durationEncoder: "seconds"
- callerEncoder: "short"
- nameEncoder: ""
-
-outputPaths:
- - "stderr"
-errorOutputPaths:
- - "stderr"
-initialFields:
diff --git a/configcenter/apollo/dubbo/go-server/profiles/dev/server.yml b/configcenter/apollo/dubbo/go-server/profiles/dev/server.yml
deleted file mode 100644
index c7a7121..0000000
--- a/configcenter/apollo/dubbo/go-server/profiles/dev/server.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-# dubbo server yaml configure file
-config_center:
- protocol: apollo
- address: 106.54.227.205:8080
- app_id: testApplication_yang
- cluster: dev
-
-application:
- organization : "ikurento.com"
- name : "BDTService"
- module : "dubbogo user-info server"
- version : "0.0.1"
- owner : "ZX"
- environment : "dev"
-
-registries :
- "hangzhouzk":
- protocol: "zookeeper"
- timeout : "3s"
- address: "127.0.0.1:2181"
- username: ""
- password: ""
-
-services:
- "UserProvider":
- # 可以指定多个registry,使用逗号隔开;不指定默认向所有注册中心注册
- registry: "hangzhouzk"
- # 相当于dubbo.xml中的interface
- interface : "com.ikurento.user.UserProvider"
- loadbalance: "random"
- warmup: "100"
- cluster: "failover"
- methods:
- - name: "GetUser"
- retries: 1
- loadbalance: "random"
-
-protocol_conf:
- dubbo:
- reconnect_interval: 0
- connection_number: 2
- heartbeat_period: "5s"
- session_timeout: "20s"
- pool_size: 64
- pool_ttl: 600
- getty_session_param:
- compress_encoding: false
- tcp_no_delay: true
- tcp_keep_alive: true
- keep_alive_period: "120s"
- tcp_r_buf_size: 262144
- tcp_w_buf_size: 65536
- pkg_rq_size: 1024
- pkg_wq_size: 512
- tcp_read_timeout: "1s"
- tcp_write_timeout: "5s"
- wait_timeout: "1s"
- max_msg_len: 10240
- session_name: "client"
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/java-client/build.sh b/configcenter/apollo/dubbo/java-client/build.sh
deleted file mode 100644
index c869acf..0000000
--- a/configcenter/apollo/dubbo/java-client/build.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# rm src/main/resources/META-INF/spring/dubbo.consumer.xml
-# cp src/main/resources/META-INF/spring/dubbo-protocol.consumer.xml src/main/resources/META-INF/spring/dubbo.consumer.xml
-# cp src/main/resources/META-INF/spring/jsonrpc-protocol.consumer.xml src/main/resources/META-INF/spring/dubbo.consumer.xml
-mvn clean package -Dmaven.test.skip
diff --git a/configcenter/apollo/dubbo/java-client/pom.xml b/configcenter/apollo/dubbo/java-client/pom.xml
deleted file mode 100644
index ce2d151..0000000
--- a/configcenter/apollo/dubbo/java-client/pom.xml
+++ /dev/null
@@ -1,211 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>com.ikurento</groupId>
- <artifactId>user-info-client</artifactId>
- <packaging>jar</packaging>
- <version>0.2.0</version>
- <description>The demo consumer module of dubbo project</description>
-
- <properties>
- <source.level>1.8</source.level>
- <target.level>1.8</target.level>
- <dubbo.version>2.7.3</dubbo.version>
- <spring.version>4.3.16.RELEASE</spring.version>
- <junit.version>4.12</junit.version>
- <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
- <jib-maven-plugin.version>1.2.0</jib-maven-plugin.version>
- <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
- <maven-failsafe-plugin.version>2.21.0</maven-failsafe-plugin.version>
- <image.name>${artifactId}:${dubbo.version}</image.name>
- <java-image.name>openjdk:8</java-image.name>
- <dubbo.port>20880</dubbo.port>
- <zookeeper.port>2181</zookeeper.port>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo</artifactId>
- <version>${dubbo.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-dependencies-zookeeper</artifactId>
- <version>${dubbo.version}</version>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-configcenter-apollo</artifactId>
- <version>${dubbo.version}</version>
- <type>pom</type>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- <version>${spring.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <profiles>
- <profile>
- <id>dubbo-integration-test</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-maven-address-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <goals>
- <goal>local-address</goal>
- </goals>
- <configuration>
- <localAddress>dubbo-local-address</localAddress>
- </configuration>
- <phase>initialize</phase>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>com.google.cloud.tools</groupId>
- <artifactId>jib-maven-plugin</artifactId>
- <version>${jib-maven-plugin.version}</version>
- <configuration>
- <from>
- <image>${java-image.name}</image>
- </from>
- <to>
- <image>${image.name}</image>
- </to>
- <container>
- <mainClass>${main-class}</mainClass>
- <ports>
- <port>${dubbo.port}</port>
- <port>${zookeeper.port}</port>
- </ports>
- <environment>
- <DUBBO_IP_TO_REGISTRY>${dubbo-local-address}</DUBBO_IP_TO_REGISTRY>
- </environment>
- <jvmFlags>
- <jvmFlag>-Dzookeeper.address=${dubbo-local-address}</jvmFlag>
- </jvmFlags>
- </container>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>dockerBuild</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${docker-maven-plugin.version}</version>
- <configuration>
- <images>
- <image>
- <name>${image.name}</name>
- <run>
- <ports>
- <port>${dubbo.port}:${dubbo.port}</port>
- <port>${zookeeper.port}:${zookeeper.port}</port>
- </ports>
- <wait>
- <log>dubbo service started</log>
- </wait>
- </run>
- </image>
- </images>
- </configuration>
- <executions>
- <execution>
- <id>start</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>start</goal>
- </goals>
- </execution>
- <execution>
- <id>stop</id>
- <phase>post-integration-test</phase>
- <goals>
- <goal>stop</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-failsafe-plugin</artifactId>
- <version>${maven-failsafe-plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>integration-test</goal>
- <goal>verify</goal>
- </goals>
- <configuration>
- <systemPropertyVariables>
- <zookeeper.address>${dubbo-local-address}</zookeeper.address>
- </systemPropertyVariables>
- <includes>
- <include>**/*IT.java</include>
- </includes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven-compiler-plugin.version}</version>
- <configuration>
- <source>${source.level}</source>
- <target>${target.level}</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/configcenter/apollo/dubbo/java-client/src/main/assembly/assembly.xml b/configcenter/apollo/dubbo/java-client/src/main/assembly/assembly.xml
deleted file mode 100644
index 84f5499..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/assembly/assembly.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<assembly>
- <id>assembly</id>
- <formats>
- <format>tar.gz</format>
- </formats>
- <includeBaseDirectory>true</includeBaseDirectory>
- <fileSets>
- <fileSet>
- <directory>${project.build.directory}/dubbo/META-INF/assembly/bin</directory>
- <outputDirectory>bin</outputDirectory>
- <fileMode>0755</fileMode>
- </fileSet>
- <fileSet>
- <directory>src/main/resources</directory>
- <includes>
- <include>dubbo.properties</include>
- <include>log4j.*</include>
- </includes>
- <outputDirectory>conf</outputDirectory>
- <fileMode>0644</fileMode>
- </fileSet>
- </fileSets>
- <dependencySets>
- <dependencySet>
- <outputDirectory>lib</outputDirectory>
- </dependencySet>
- </dependencySets>
-</assembly>
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/Consumer.java b/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/Consumer.java
deleted file mode 100644
index 7714e03..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/Consumer.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.ikurento.user;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-
-public class Consumer {
- // Define a private variable (Required in Spring)
- private UserProvider userProvider;
-
- // Spring DI (Required in Spring)
- public void setUserProvider(UserProvider u) {
- this.userProvider = u;
- }
-
- public static void main(String[] args) throws Exception {
- new EmbeddedZooKeeper(2181, false).start();
- ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("META-INF/spring/dubbo.consumer.xml","META-INF/spring/service.xml");
- context.start();
- context.getBean(Consumer.class).start();
- }
-
- // Start the entry function for consumer (Specified in the configuration file)
- public void start() {
- System.out.println("\n\ntest");
- testGetUser();
- }
-
- private void testGetUser() {
- try {
- User user1 = userProvider.GetUser("A003");
- System.out.println("[" + new SimpleDateFormat("HH:mm:ss").format(new Date()) + "] " +
- " UserInfo, Id:" + user1.getId() + ", name:" + user1.getName()
- + ", age:" + user1.getAge() + ", time:" + user1.getTime().toString());
-
- } catch (Exception e) {
- System.out.println("*************exception***********");
- e.printStackTrace();
- }
- }
-
-}
diff --git a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/EmbeddedZooKeeper.java b/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/EmbeddedZooKeeper.java
deleted file mode 100644
index fb99a0d..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/EmbeddedZooKeeper.java
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- * Copyright 2014 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.ikurento.user;
-
-import org.apache.zookeeper.server.ServerConfig;
-import org.apache.zookeeper.server.ZooKeeperServerMain;
-import org.apache.zookeeper.server.quorum.QuorumPeerConfig;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.context.SmartLifecycle;
-import org.springframework.util.ErrorHandler;
-import org.springframework.util.SocketUtils;
-
-import java.io.File;
-import java.lang.reflect.Method;
-import java.util.Properties;
-import java.util.UUID;
-
-/**
- * from: https://github.com/spring-projects/spring-xd/blob/v1.3.1.RELEASE/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/zookeeper/ZooKeeperUtils.java
- * <p>
- * Helper class to start an embedded instance of standalone (non clustered) ZooKeeper.
- * <p>
- * NOTE: at least an external standalone server (if not an ensemble) are recommended, even for
- * {@link org.springframework.xd.dirt.server.singlenode.SingleNodeApplication}
- *
- * @author Patrick Peralta
- * @author Mark Fisher
- * @author David Turanski
- */
-public class EmbeddedZooKeeper implements SmartLifecycle {
-
- /**
- * Logger.
- */
- private static final Logger logger = LoggerFactory.getLogger(EmbeddedZooKeeper.class);
-
- /**
- * ZooKeeper client port. This will be determined dynamically upon startup.
- */
- private final int clientPort;
-
- /**
- * Whether to auto-start. Default is true.
- */
- private boolean autoStartup = true;
-
- /**
- * Lifecycle phase. Default is 0.
- */
- private int phase = 0;
-
- /**
- * Thread for running the ZooKeeper server.
- */
- private volatile Thread zkServerThread;
-
- /**
- * ZooKeeper server.
- */
- private volatile ZooKeeperServerMain zkServer;
-
- /**
- * {@link ErrorHandler} to be invoked if an Exception is thrown from the ZooKeeper server thread.
- */
- private ErrorHandler errorHandler;
-
- private boolean daemon = true;
-
- /**
- * Construct an EmbeddedZooKeeper with a random port.
- */
- public EmbeddedZooKeeper() {
- clientPort = SocketUtils.findAvailableTcpPort();
- }
-
- /**
- * Construct an EmbeddedZooKeeper with the provided port.
- *
- * @param clientPort port for ZooKeeper server to bind to
- */
- public EmbeddedZooKeeper(int clientPort, boolean daemon) {
- this.clientPort = clientPort;
- this.daemon = daemon;
- }
-
- /**
- * Returns the port that clients should use to connect to this embedded server.
- *
- * @return dynamically determined client port
- */
- public int getClientPort() {
- return this.clientPort;
- }
-
- /**
- * Specify whether to start automatically. Default is true.
- *
- * @param autoStartup whether to start automatically
- */
- public void setAutoStartup(boolean autoStartup) {
- this.autoStartup = autoStartup;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isAutoStartup() {
- return this.autoStartup;
- }
-
- /**
- * Specify the lifecycle phase for the embedded server.
- *
- * @param phase the lifecycle phase
- */
- public void setPhase(int phase) {
- this.phase = phase;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public int getPhase() {
- return this.phase;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isRunning() {
- return (zkServerThread != null);
- }
-
- /**
- * Start the ZooKeeper server in a background thread.
- * <p>
- * Register an error handler via {@link #setErrorHandler} in order to handle
- * any exceptions thrown during startup or execution.
- */
- @Override
- public synchronized void start() {
- if (zkServerThread == null) {
- zkServerThread = new Thread(new ServerRunnable(), "ZooKeeper Server Starter");
- zkServerThread.setDaemon(daemon);
- zkServerThread.start();
- }
- }
-
- /**
- * Shutdown the ZooKeeper server.
- */
- @Override
- public synchronized void stop() {
- if (zkServerThread != null) {
- // The shutdown method is protected...thus this hack to invoke it.
- // This will log an exception on shutdown; see
- // https://issues.apache.org/jira/browse/ZOOKEEPER-1873 for details.
- try {
- Method shutdown = ZooKeeperServerMain.class.getDeclaredMethod("shutdown");
- shutdown.setAccessible(true);
- shutdown.invoke(zkServer);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
-
- // It is expected that the thread will exit after
- // the server is shutdown; this will block until
- // the shutdown is complete.
- try {
- zkServerThread.join(5000);
- zkServerThread = null;
- } catch (InterruptedException e) {
- Thread.currentThread().interrupt();
- logger.warn("Interrupted while waiting for embedded ZooKeeper to exit");
- // abandoning zk thread
- zkServerThread = null;
- }
- }
- }
-
- /**
- * Stop the server if running and invoke the callback when complete.
- */
- @Override
- public void stop(Runnable callback) {
- stop();
- callback.run();
- }
-
- /**
- * Provide an {@link ErrorHandler} to be invoked if an Exception is thrown from the ZooKeeper server thread. If none
- * is provided, only error-level logging will occur.
- *
- * @param errorHandler the {@link ErrorHandler} to be invoked
- */
- public void setErrorHandler(ErrorHandler errorHandler) {
- this.errorHandler = errorHandler;
- }
-
- /**
- * Runnable implementation that starts the ZooKeeper server.
- */
- private class ServerRunnable implements Runnable {
-
- @Override
- public void run() {
- try {
- Properties properties = new Properties();
- File file = new File(System.getProperty("java.io.tmpdir")
- + File.separator + UUID.randomUUID());
- file.deleteOnExit();
- properties.setProperty("dataDir", file.getAbsolutePath());
- properties.setProperty("clientPort", String.valueOf(clientPort));
-
- QuorumPeerConfig quorumPeerConfig = new QuorumPeerConfig();
- quorumPeerConfig.parseProperties(properties);
-
- zkServer = new ZooKeeperServerMain();
- ServerConfig configuration = new ServerConfig();
- configuration.readFrom(quorumPeerConfig);
-
- zkServer.runFromConfig(configuration);
- } catch (Exception e) {
- if (errorHandler != null) {
- errorHandler.handleError(e);
- } else {
- logger.error("Exception running embedded ZooKeeper", e);
- }
- }
- }
- }
-
-}
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/User.java b/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/User.java
deleted file mode 100644
index 1526244..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/User.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.ikurento.user;
-
-import java.util.Date;
-
-public class User {
-
- private String id;
-
- private String name;
-
- private int age;
-
- private Date time = new Date();
-
-
- public User() {
- }
-
-
- public User(String id, String name, int age) {
- this.id = id;
- this.name = name;
- this.age = age;
- }
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public int getAge() {
- return age;
- }
-
- public void setAge(int age) {
- this.age = age;
- }
-
- public Date getTime() {
- return time;
- }
-
- public void setTime(Date time) {
- this.time = time;
- }
-
-
-}
diff --git a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/UserProvider.java b/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/UserProvider.java
deleted file mode 100644
index f42452d..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/UserProvider.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.ikurento.user;
-
-public interface UserProvider {
- User GetUser(String userId);
-}
diff --git a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/ZKTools.java b/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/ZKTools.java
deleted file mode 100644
index 65059ec..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/java/com/ikurento/user/ZKTools.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.ikurento.user;
-
-import org.apache.curator.framework.CuratorFramework;
-import org.apache.curator.framework.CuratorFrameworkFactory;
-import org.apache.curator.retry.ExponentialBackoffRetry;
-
-public class ZKTools {
- private static String zookeeperHost = System.getProperty("zookeeper.address", "127.0.0.1");
- private static CuratorFramework client;
-
- public static void main(String[] args) throws Exception {
- generateDubboProperties();
- }
-
- public static void generateDubboProperties() {
- client = CuratorFrameworkFactory.newClient(zookeeperHost + ":2181", 60 * 1000, 60 * 1000,
- new ExponentialBackoffRetry(1000, 3));
- client.start();
-
- generateDubboPropertiesForGlobal();
- generateDubboPropertiesForConsumer();
- }
-
- public static void generateDubboPropertiesForGlobal() {
- String str = "dubbo.registry.address=zookeeper://" + zookeeperHost + ":2181\n" +
-// "dubbo.metadata-report.address=zookeeper://" + zookeeperHost + ":2181\n" +
- "dubbo.protocol.port=-1\n" +
-// "dubbo.registry.simplified=true\n"+
- "";
-
- System.out.println(str);
-
- try {
- String path = "/dubbo/config/dubbo/dubbo.properties";
- if (client.checkExists().forPath(path) == null) {
- client.create().creatingParentsIfNeeded().forPath(path);
- }
- setData(path, str);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public static void generateDubboPropertiesForConsumer() {
- String str = "dubbo.consumer.timeout=6666\n" +
- "dubbo.reference.com.ikurento.user.UserProvider.cluster=failback";
-
- System.out.println(str);
-
- try {
- String path = "/dubbo/config/user-info-client/dubbo.properties";
- if (client.checkExists().forPath(path) == null) {
- client.create().creatingParentsIfNeeded().forPath(path);
- }
- setData(path, str);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private static void createNode(String path) throws Exception {
- client.create().forPath(path);
- }
-
- private static void deleteNode(String path) throws Exception {
- client.delete().forPath(path);
- }
-
- private static void setData(String path, String data) throws Exception {
- client.setData().forPath(path, data.getBytes());
- }
-}
diff --git a/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/app.properties b/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/app.properties
deleted file mode 100644
index 4a02235..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/app.properties
+++ /dev/null
@@ -1 +0,0 @@
-app.id=testApplication_yang
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml b/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
deleted file mode 100644
index 6918924..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
-
-
- <!-- 消费方应用名,用于计算依赖关系,不是匹配条件,不要与提供方一样 -->
- <dubbo:application name="user-info-client" />
- <dubbo:config-center protocol="apollo" address="127.0.0.1:8080"/>
-
- <!-- 用dubbo协议在20880端口暴露服务 -->
- <dubbo:protocol id="dubbo" name="dubbo" />
- <dubbo:protocol id="jsonrpc" name="jsonrpc" />
-
- <!-- 声明需要使用的服务接口 -->
- <dubbo:reference registry="ikurento" check="false" id="userProvider" protocol="dubbo" interface="com.ikurento.user.UserProvider">
- <!--<dubbo:parameter key="heartbeat" value="10000"/ -->
- </dubbo:reference>
-</beans>
diff --git a/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/spring/service.xml b/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/spring/service.xml
deleted file mode 100644
index e4f5fda..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/resources/META-INF/spring/service.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
-
- <bean class="com.ikurento.user.Consumer" init-method="start">
- <!-- 声明这个类 要使用的服务名-->
- <property name="userProvider" ref="userProvider" />
- </bean>
-
-</beans>
diff --git a/configcenter/apollo/dubbo/java-client/src/main/resources/log4j.properties b/configcenter/apollo/dubbo/java-client/src/main/resources/log4j.properties
deleted file mode 100644
index 06bcb34..0000000
--- a/configcenter/apollo/dubbo/java-client/src/main/resources/log4j.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-## Logger configure file for myproject
-log.dir=logs/
-datestamp=yyyy-MM-dd/HH:mm:ss.SSS
-
-log4j.rootLogger=DEBUG, file, console
-
-log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.file.threshold=DEBUG
-log4j.appender.file.File=${log.dir}/log4j.log
-log4j.appender.file.DatePattern=-yyyyMMddHH
-log4j.appender.file.ImmediateFlush=true
-log4j.appender.file.Append=true
-log4j.appender.file.layout=org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern=%d{${datestamp}} %5p: %l - %m%n
-
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.Threshold=DEBUG
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%d{${datestamp}} %5p: %l - %m%n
diff --git a/configcenter/apollo/dubbo/java-server/build.sh b/configcenter/apollo/dubbo/java-server/build.sh
deleted file mode 100644
index 7b5755b..0000000
--- a/configcenter/apollo/dubbo/java-server/build.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# mvn dependency:sources
-mvn clean package -Dmaven.test.skip
-# mvn -X clean compile package -DskipTests=true
diff --git a/configcenter/apollo/dubbo/java-server/pom.xml b/configcenter/apollo/dubbo/java-server/pom.xml
deleted file mode 100644
index 32a14f1..0000000
--- a/configcenter/apollo/dubbo/java-server/pom.xml
+++ /dev/null
@@ -1,216 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>com.ikurento</groupId>
- <artifactId>user-info-server</artifactId>
- <packaging>jar</packaging>
- <version>0.2.0</version>
- <description>The demo provider module of dubbo project</description>
- <properties>
- <source.level>1.8</source.level>
- <target.level>1.8</target.level>
- <dubbo.version>2.7.3</dubbo.version>
- <spring.version>4.3.16.RELEASE</spring.version>
- <junit.version>4.12</junit.version>
- <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
- <jib-maven-plugin.version>1.2.0</jib-maven-plugin.version>
- <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
- <maven-failsafe-plugin.version>2.21.0</maven-failsafe-plugin.version>
- <image.name>${artifactId}:${dubbo.version}</image.name>
- <java-image.name>openjdk:8</java-image.name>
- <dubbo.port>20880</dubbo.port>
- <zookeeper.port>2181</zookeeper.port>
- <main-class>org.apache.dubbo.samples.configcenter.BasicProvider</main-class>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo</artifactId>
- <version>${dubbo.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-dependencies-zookeeper</artifactId>
- <version>${dubbo.version}</version>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-configcenter-apollo</artifactId>
- <version>${dubbo.version}</version>
- <type>pom</type>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- <version>${spring.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <profiles>
- <profile>
- <id>dubbo-integration-test</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-maven-address-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <goals>
- <goal>local-address</goal>
- </goals>
- <configuration>
- <localAddress>dubbo-local-address</localAddress>
- </configuration>
- <phase>initialize</phase>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>com.google.cloud.tools</groupId>
- <artifactId>jib-maven-plugin</artifactId>
- <version>${jib-maven-plugin.version}</version>
- <configuration>
- <from>
- <image>${java-image.name}</image>
- </from>
- <to>
- <image>${image.name}</image>
- </to>
- <container>
- <mainClass>${main-class}</mainClass>
- <ports>
- <port>${dubbo.port}</port>
- <port>${zookeeper.port}</port>
- </ports>
- <environment>
- <DUBBO_IP_TO_REGISTRY>${dubbo-local-address}</DUBBO_IP_TO_REGISTRY>
- </environment>
- <jvmFlags>
- <jvmFlag>-Dzookeeper.address=${dubbo-local-address}</jvmFlag>
- </jvmFlags>
- </container>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>dockerBuild</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${docker-maven-plugin.version}</version>
- <configuration>
- <images>
- <image>
- <name>${image.name}</name>
- <run>
- <ports>
- <port>${dubbo.port}:${dubbo.port}</port>
- <port>${zookeeper.port}:${zookeeper.port}</port>
- </ports>
- <wait>
- <log>dubbo service started</log>
- </wait>
- </run>
- </image>
- </images>
- </configuration>
- <executions>
- <execution>
- <id>start</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>start</goal>
- </goals>
- </execution>
- <execution>
- <id>stop</id>
- <phase>post-integration-test</phase>
- <goals>
- <goal>stop</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-failsafe-plugin</artifactId>
- <version>${maven-failsafe-plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>integration-test</goal>
- <goal>verify</goal>
- </goals>
- <configuration>
- <systemPropertyVariables>
- <zookeeper.address>${dubbo-local-address}</zookeeper.address>
- </systemPropertyVariables>
- <includes>
- <include>**/*IT.java</include>
- </includes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven-compiler-plugin.version}</version>
- <configuration>
- <source>${source.level}</source>
- <target>${target.level}</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
-
-
diff --git a/configcenter/apollo/dubbo/java-server/script/debug.sh b/configcenter/apollo/dubbo/java-server/script/debug.sh
deleted file mode 100644
index 851957a..0000000
--- a/configcenter/apollo/dubbo/java-server/script/debug.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/*:/Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/ com.alibaba.dubbo.container.Main
-jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/* -sourcepath /Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/:/Users/alex/tmp/java-server/src/main/java com.alibaba.dubbo.container.Main
-# jdb stop at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec:76
-# run
-
diff --git a/configcenter/apollo/dubbo/java-server/src/main/assembly/assembly.xml b/configcenter/apollo/dubbo/java-server/src/main/assembly/assembly.xml
deleted file mode 100644
index ce8e7e7..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/assembly/assembly.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<assembly>
- <id>assembly</id>
- <formats>
- <format>tar.gz</format>
- </formats>
- <includeBaseDirectory>true</includeBaseDirectory>
- <fileSets>
- <fileSet>
- <directory>${project.build.directory}/dubbo/META-INF/assembly/bin</directory>
- <outputDirectory>bin</outputDirectory>
- <fileMode>0755</fileMode>
- <directoryMode>0755</directoryMode>
- </fileSet>
- <fileSet>
- <directory>src/main/resources</directory>
- <includes>
- <include>log4j.*</include>
- </includes>
- <outputDirectory>conf</outputDirectory>
- <fileMode>0644</fileMode>
- <directoryMode>0755</directoryMode>
- </fileSet>
- </fileSets>
- <dependencySets>
- <dependencySet>
- <outputDirectory>lib</outputDirectory>
- </dependencySet>
- </dependencySets>
-</assembly>
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/EmbeddedZooKeeper.java b/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/EmbeddedZooKeeper.java
deleted file mode 100644
index fb99a0d..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/EmbeddedZooKeeper.java
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- * Copyright 2014 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.ikurento.user;
-
-import org.apache.zookeeper.server.ServerConfig;
-import org.apache.zookeeper.server.ZooKeeperServerMain;
-import org.apache.zookeeper.server.quorum.QuorumPeerConfig;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.context.SmartLifecycle;
-import org.springframework.util.ErrorHandler;
-import org.springframework.util.SocketUtils;
-
-import java.io.File;
-import java.lang.reflect.Method;
-import java.util.Properties;
-import java.util.UUID;
-
-/**
- * from: https://github.com/spring-projects/spring-xd/blob/v1.3.1.RELEASE/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/zookeeper/ZooKeeperUtils.java
- * <p>
- * Helper class to start an embedded instance of standalone (non clustered) ZooKeeper.
- * <p>
- * NOTE: at least an external standalone server (if not an ensemble) are recommended, even for
- * {@link org.springframework.xd.dirt.server.singlenode.SingleNodeApplication}
- *
- * @author Patrick Peralta
- * @author Mark Fisher
- * @author David Turanski
- */
-public class EmbeddedZooKeeper implements SmartLifecycle {
-
- /**
- * Logger.
- */
- private static final Logger logger = LoggerFactory.getLogger(EmbeddedZooKeeper.class);
-
- /**
- * ZooKeeper client port. This will be determined dynamically upon startup.
- */
- private final int clientPort;
-
- /**
- * Whether to auto-start. Default is true.
- */
- private boolean autoStartup = true;
-
- /**
- * Lifecycle phase. Default is 0.
- */
- private int phase = 0;
-
- /**
- * Thread for running the ZooKeeper server.
- */
- private volatile Thread zkServerThread;
-
- /**
- * ZooKeeper server.
- */
- private volatile ZooKeeperServerMain zkServer;
-
- /**
- * {@link ErrorHandler} to be invoked if an Exception is thrown from the ZooKeeper server thread.
- */
- private ErrorHandler errorHandler;
-
- private boolean daemon = true;
-
- /**
- * Construct an EmbeddedZooKeeper with a random port.
- */
- public EmbeddedZooKeeper() {
- clientPort = SocketUtils.findAvailableTcpPort();
- }
-
- /**
- * Construct an EmbeddedZooKeeper with the provided port.
- *
- * @param clientPort port for ZooKeeper server to bind to
- */
- public EmbeddedZooKeeper(int clientPort, boolean daemon) {
- this.clientPort = clientPort;
- this.daemon = daemon;
- }
-
- /**
- * Returns the port that clients should use to connect to this embedded server.
- *
- * @return dynamically determined client port
- */
- public int getClientPort() {
- return this.clientPort;
- }
-
- /**
- * Specify whether to start automatically. Default is true.
- *
- * @param autoStartup whether to start automatically
- */
- public void setAutoStartup(boolean autoStartup) {
- this.autoStartup = autoStartup;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isAutoStartup() {
- return this.autoStartup;
- }
-
- /**
- * Specify the lifecycle phase for the embedded server.
- *
- * @param phase the lifecycle phase
- */
- public void setPhase(int phase) {
- this.phase = phase;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public int getPhase() {
- return this.phase;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isRunning() {
- return (zkServerThread != null);
- }
-
- /**
- * Start the ZooKeeper server in a background thread.
- * <p>
- * Register an error handler via {@link #setErrorHandler} in order to handle
- * any exceptions thrown during startup or execution.
- */
- @Override
- public synchronized void start() {
- if (zkServerThread == null) {
- zkServerThread = new Thread(new ServerRunnable(), "ZooKeeper Server Starter");
- zkServerThread.setDaemon(daemon);
- zkServerThread.start();
- }
- }
-
- /**
- * Shutdown the ZooKeeper server.
- */
- @Override
- public synchronized void stop() {
- if (zkServerThread != null) {
- // The shutdown method is protected...thus this hack to invoke it.
- // This will log an exception on shutdown; see
- // https://issues.apache.org/jira/browse/ZOOKEEPER-1873 for details.
- try {
- Method shutdown = ZooKeeperServerMain.class.getDeclaredMethod("shutdown");
- shutdown.setAccessible(true);
- shutdown.invoke(zkServer);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
-
- // It is expected that the thread will exit after
- // the server is shutdown; this will block until
- // the shutdown is complete.
- try {
- zkServerThread.join(5000);
- zkServerThread = null;
- } catch (InterruptedException e) {
- Thread.currentThread().interrupt();
- logger.warn("Interrupted while waiting for embedded ZooKeeper to exit");
- // abandoning zk thread
- zkServerThread = null;
- }
- }
- }
-
- /**
- * Stop the server if running and invoke the callback when complete.
- */
- @Override
- public void stop(Runnable callback) {
- stop();
- callback.run();
- }
-
- /**
- * Provide an {@link ErrorHandler} to be invoked if an Exception is thrown from the ZooKeeper server thread. If none
- * is provided, only error-level logging will occur.
- *
- * @param errorHandler the {@link ErrorHandler} to be invoked
- */
- public void setErrorHandler(ErrorHandler errorHandler) {
- this.errorHandler = errorHandler;
- }
-
- /**
- * Runnable implementation that starts the ZooKeeper server.
- */
- private class ServerRunnable implements Runnable {
-
- @Override
- public void run() {
- try {
- Properties properties = new Properties();
- File file = new File(System.getProperty("java.io.tmpdir")
- + File.separator + UUID.randomUUID());
- file.deleteOnExit();
- properties.setProperty("dataDir", file.getAbsolutePath());
- properties.setProperty("clientPort", String.valueOf(clientPort));
-
- QuorumPeerConfig quorumPeerConfig = new QuorumPeerConfig();
- quorumPeerConfig.parseProperties(properties);
-
- zkServer = new ZooKeeperServerMain();
- ServerConfig configuration = new ServerConfig();
- configuration.readFrom(quorumPeerConfig);
-
- zkServer.runFromConfig(configuration);
- } catch (Exception e) {
- if (errorHandler != null) {
- errorHandler.handleError(e);
- } else {
- logger.error("Exception running embedded ZooKeeper", e);
- }
- }
- }
- }
-
-}
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/Provider.java b/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/Provider.java
deleted file mode 100644
index 12845fb..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/Provider.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.ikurento.user;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-import java.util.concurrent.CountDownLatch;
-
-public class Provider {
-
- /**
- * To get ipv6 address to work, add
- * System.setProperty("java.net.preferIPv6Addresses", "true");
- * before running your application.
- */
- public static void main(String[] args) throws Exception {
- new EmbeddedZooKeeper(2181, false).start();
-
- ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("META-INF/spring/dubbo.provider.xml");
- context.registerShutdownHook();
- context.start();
-
- System.out.println("dubbo service started");
- new CountDownLatch(1).await();
- }
-}
diff --git a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/User.java b/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/User.java
deleted file mode 100644
index ac046bd..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/User.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.ikurento.user;
-
-import java.util.Date;
-import java.io.Serializable;
-
-public class User implements Serializable {
-
- private String id;
-
- private String name;
-
- private int age;
-
- private Date time = new Date();
-
- public User() {
- }
-
- public User(String id, String name, int age) {
- this.id = id;
- this.name = name;
- this.age = age;
- }
-
- public User(String id, String name, int age, Date time) {
- this.id = id;
- this.name = name;
- this.age = age;
- this.time = time;
- }
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public int getAge() {
- return age;
- }
-
- public void setAge(int age) {
- this.age = age;
- }
-
- public Date getTime() {
- return time;
- }
-
- public void setTime(Date time) {
- this.time = time;
- }
-
-
-
- public String toString() {
- return "User{id:" + id + ", name:" + name + ", age:" + age + ", time:" + time +"}";
- }
-}
diff --git a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java b/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
deleted file mode 100644
index 831588d..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.ikurento.user;
-
-public interface UserProvider {
-
- User GetUser(String userId); // the first alpha is Upper case to compatible with golang.
-
-}
diff --git a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/ZKTools.java b/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/ZKTools.java
deleted file mode 100644
index 6ed90de..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/ZKTools.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.ikurento.user;
-
-import org.apache.curator.framework.CuratorFramework;
-import org.apache.curator.framework.CuratorFrameworkFactory;
-import org.apache.curator.retry.ExponentialBackoffRetry;
-
-public class ZKTools {
- private static String zookeeperHost = System.getProperty("zookeeper.address", "127.0.0.1");
- private static CuratorFramework client;
-
- public static void main(String[] args) throws Exception {
- generateDubboProperties();
- }
-
- public static void generateDubboProperties() {
- client = CuratorFrameworkFactory.newClient(zookeeperHost + ":2181", 60 * 1000, 60 * 1000,
- new ExponentialBackoffRetry(1000, 3));
- client.start();
-
- generateDubboPropertiesForGlobal();
- generateDubboPropertiesForApp();
- }
-
- public static void generateDubboPropertiesForGlobal() {
- String str = "dubbo.registry.address=zookeeper://" + zookeeperHost + ":2181\n" +
-// "dubbo.metadata-report.address=zookeeper://" + zookeeperHost + ":2181\n" +
- "dubbo.protocol.port=-1\n" +
-// "dubbo.registry.simplified=true\n"+
- "";
-
- System.out.println(str);
-
- try {
- String path = "/dubbo/config/dubbo/dubbo.properties";
- if (client.checkExists().forPath(path) == null) {
- client.create().creatingParentsIfNeeded().forPath(path);
- }
- setData(path, str);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public static void generateDubboPropertiesForApp() {
- String str = "dubbo.provider.timeout=6666\n" +
- "dubbo.application.qos.port=33333\n" +
- "dubbo.service.com.ikurento.user.UserProvider.cluster=failback";
-
- System.out.println(str);
-
- try {
- String path = "/dubbo/config/user-info-server/dubbo.properties";
- if (client.checkExists().forPath(path) == null) {
- client.create().creatingParentsIfNeeded().forPath(path);
- }
- setData(path, str);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private static void createNode(String path) throws Exception {
- client.create().forPath(path);
- }
-
- private static void deleteNode(String path) throws Exception {
- client.delete().forPath(path);
- }
-
- private static void setData(String path, String data) throws Exception {
- client.setData().forPath(path, data.getBytes());
- }
-}
diff --git a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/impl/UserProviderImpl.java b/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/impl/UserProviderImpl.java
deleted file mode 100644
index 0caf910..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/java/com/ikurento/user/impl/UserProviderImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.ikurento.user.impl;
-
-import com.ikurento.user.User;
-import com.ikurento.user.UserProvider;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class UserProviderImpl implements UserProvider {
- private static final Logger LOG = LoggerFactory.getLogger("UserLogger"); //Output to user-server.log
-
- public User GetUser(String userId) {
- return new User(userId, "zhangsan", 18);
- }
-
-}
diff --git a/configcenter/apollo/dubbo/java-server/src/main/resources/META-INF/app.properties b/configcenter/apollo/dubbo/java-server/src/main/resources/META-INF/app.properties
deleted file mode 100644
index 4a02235..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/resources/META-INF/app.properties
+++ /dev/null
@@ -1 +0,0 @@
-app.id=testApplication_yang
\ No newline at end of file
diff --git a/configcenter/apollo/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml b/configcenter/apollo/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
deleted file mode 100644
index 9e1847e..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
- xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
- http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
-
- <context:property-placeholder/>
- <!-- 应用名 -->
- <dubbo:application name="user-info-server"/>
- <dubbo:config-center protocol="apollo" address="127.0.0.1:8080"/>
-
- <bean id="demoService" class="com.ikurento.user.impl.UserProviderImpl"/><!-- 声明需要暴露的服务接口 -->
- <dubbo:service id="UserProvider1" registry="ikurento" timeout="3000" interface="com.ikurento.user.UserProvider"
- ref="demoService"/>
- <dubbo:service id="UserProvider2" registry="ikurento" timeout="3000" interface="com.ikurento.user.UserProvider"
- ref="demoService"/>
-</beans>
diff --git a/configcenter/apollo/dubbo/java-server/src/main/resources/log4j.properties b/configcenter/apollo/dubbo/java-server/src/main/resources/log4j.properties
deleted file mode 100644
index 806e33d..0000000
--- a/configcenter/apollo/dubbo/java-server/src/main/resources/log4j.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-## Logger configure file for myproject
-log.dir=logs/
-datestamp=yyyy-MM-dd/HH:mm:ss.SSS
-
-log4j.rootLogger=DEBUG, file, console
-
-log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.file.threshold=DEBUG
-log4j.appender.file.File=${log.dir}/log4j.log
-log4j.appender.file.DatePattern=-yyyyMMddHH
-log4j.appender.file.ImmediateFlush=true
-log4j.appender.file.Append=true
-log4j.appender.file.layout=org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern=%d{${datestamp}} %5p: %l - %m%n
-
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.Threshold=DEBUG
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%d{${datestamp}} %5p: %l - %m%n
-
diff --git a/configcenter/nacos/README.md b/configcenter/nacos/README.md
deleted file mode 100644
index 614760e..0000000
--- a/configcenter/nacos/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-### 1.Run naocs as config center
-
-### 2.Add config (dataId=dubbo.properties group=dubbo)
- dubbo.service.com.ikurento.user.UserProvider.cluster=failback
- dubbo.service.com.ikurento.user.UserProvider.protocol=myDubbo
- dubbo.protocols.myDubbo.port=20000
- dubbo.protocols.myDubbo.name=dubbo
-
-### 3.Run go server
-
-### 4.Run go client
diff --git a/configcenter/nacos/dubbo/go-client/app/client.go b/configcenter/nacos/dubbo/go-client/app/client.go
deleted file mode 100644
index e457052..0000000
--- a/configcenter/nacos/dubbo/go-client/app/client.go
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "os/signal"
- "syscall"
- "time"
-)
-
-import (
- "github.com/dubbogo/gost/log"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/common/logger"
- _ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
- "github.com/apache/dubbo-go/config"
- _ "github.com/apache/dubbo-go/protocol/dubbo"
- _ "github.com/apache/dubbo-go/registry/protocol"
-
- _ "github.com/apache/dubbo-go/filter/filter_impl"
-
- _ "github.com/apache/dubbo-go/cluster/cluster_impl"
- _ "github.com/apache/dubbo-go/cluster/loadbalance"
- _ "github.com/apache/dubbo-go/config_center/nacos"
- _ "github.com/apache/dubbo-go/registry/zookeeper"
-)
-
-var (
- survivalTimeout int = 10e9
-)
-
-// they are necessary:
-// export CONF_CONSUMER_FILE_PATH="xxx"
-// export APP_LOG_CONF_FILE="xxx"
-func main() {
- hessian.RegisterPOJO(&User{})
- config.Load()
- time.Sleep(1e9)
-
- gxlog.CInfo("\n\n\nstart to test dubbo")
- user := &User{}
- err := userProvider.GetUser(context.TODO(), []interface{}{"A001"}, user)
- if err != nil {
- panic(err)
- }
- gxlog.CInfo("response result: %v\n", user)
- initSignal()
-}
-
-func initSignal() {
- signals := make(chan os.Signal, 1)
- // It is not possible to block SIGKILL or syscall.SIGSTOP
- signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGHUP,
- syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
- for {
- sig := <-signals
- logger.Infof("get signal %s", sig.String())
- switch sig {
- case syscall.SIGHUP:
- // reload()
- default:
- time.AfterFunc(time.Duration(survivalTimeout), func() {
- logger.Warnf("app exit now by force...")
- os.Exit(1)
- })
-
- // The program exits normally or timeout forcibly exits.
- fmt.Println("app exit now...")
- return
- }
- }
-}
diff --git a/configcenter/nacos/dubbo/go-client/app/user.go b/configcenter/nacos/dubbo/go-client/app/user.go
deleted file mode 100644
index ff4486f..0000000
--- a/configcenter/nacos/dubbo/go-client/app/user.go
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "time"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/config"
-)
-
-var userProvider = new(UserProvider)
-
-func init() {
- config.SetConsumerService(userProvider)
- hessian.RegisterPOJO(&User{})
-}
-
-type User struct {
- Id string
- Name string
- Age int32
- Time time.Time
-}
-
-type UserProvider struct {
- GetUser func(ctx context.Context, req []interface{}, rsp *User) error
-}
-
-func (u *UserProvider) Reference() string {
- return "UserProvider"
-}
-
-func (User) JavaClassName() string {
- return "com.ikurento.user.User"
-}
diff --git a/configcenter/nacos/dubbo/go-client/assembly/bin/load.sh b/configcenter/nacos/dubbo/go-client/assembly/bin/load.sh
deleted file mode 100644
index ffa240b..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/bin/load.sh
+++ /dev/null
@@ -1,203 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-APP_NAME="APPLICATION_NAME"
-APP_ARGS=""
-SLEEP_INTERVAL=5
-MAX_LIFETIME=4000
-
-PROJECT_HOME=""
-OS_NAME=`uname`
-if [[ ${OS_NAME} != "Windows" ]]; then
- PROJECT_HOME=`pwd`
- PROJECT_HOME=${PROJECT_HOME}"/"
-else
- APP_NAME="APPLICATION_NAME.exe"
-fi
-
-export CONF_CONSUMER_FILE_PATH=${PROJECT_HOME}"TARGET_CONF_FILE"
-export APP_LOG_CONF_FILE=${PROJECT_HOME}"TARGET_LOG_CONF_FILE"
-# export GOTRACEBACK=system
-# export GODEBUG=gctrace=1
-
-usage() {
- echo "Usage: $0 start [conf suffix]"
- echo " $0 stop"
- echo " $0 term"
- echo " $0 restart"
- echo " $0 list"
- echo " $0 monitor"
- echo " $0 crontab"
- exit
-}
-
-start() {
- arg=$1
- if [ "$arg" = "" ];then
- echo "No registry type! Default client.yml!"
- else
- export CONF_CONSUMER_FILE_PATH=${CONF_CONSUMER_FILE_PATH//\.yml/\_$arg\.yml}
- fi
- if [ ! -f "${CONF_CONSUMER_FILE_PATH}" ];then
- echo $CONF_CONSUMER_FILE_PATH" is not existing!"
- return
- fi
- APP_LOG_PATH=${PROJECT_HOME}"logs/"
- mkdir -p ${APP_LOG_PATH}
- APP_BIN=${PROJECT_HOME}sbin/${APP_NAME}
- chmod u+x ${APP_BIN}
- # CMD="nohup ${APP_BIN} ${APP_ARGS} >>${APP_NAME}.nohup.out 2>&1 &"
- CMD="${APP_BIN}"
- eval ${CMD}
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- CUR=`date +%FT%T`
- if [ "${PID}" != "" ]; then
- for p in ${PID}
- do
- echo "start ${APP_NAME} ( pid =" ${p} ") at " ${CUR}
- done
- fi
-}
-
-stop() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -SIGINT ${APP_NAME} ( pid =" ${ps} ")"
- kill -2 ${ps}
- done
- fi
-}
-
-
-term() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -9 ${APP_NAME} ( pid =" ${ps} ")"
- kill -9 ${ps}
- done
- fi
-}
-
-list() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s\n", $1, $2, $9, $10)}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s,%s\n", $1, $4, $6, $7, $8)}'`
- fi
-
- if [ "${PID}" != "" ]; then
- echo "list ${APP_NAME}"
-
- if [[ ${OS_NAME} == "Linux" || ${OS_NAME} == "Darwin" ]]; then
- echo "index: user, pid, start, duration"
- else
- echo "index: PID, WINPID, UID, STIME, COMMAND"
- fi
- idx=0
- for ps in ${PID}
- do
- echo "${idx}: ${ps}"
- ((idx ++))
- done
- fi
-}
-
-monitor() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- done
-}
-
-crontab() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- if [[ ${LIFE} -gt ${MAX_LIFETIME} ]]; then
- kill -9 ${PID}
- fi
- done
-}
-
-opt=$1
-case C"$opt" in
- Cstart)
- start $2
- ;;
- Cstop)
- stop
- ;;
- Cterm)
- term
- ;;
- Crestart)
- term
- start $2
- ;;
- Clist)
- list
- ;;
- Cmonitor)
- monitor
- ;;
- Ccrontab)
- crontab
- ;;
- C*)
- usage
- ;;
-esac
-
diff --git a/configcenter/nacos/dubbo/go-client/assembly/common/app.properties b/configcenter/nacos/dubbo/go-client/assembly/common/app.properties
deleted file mode 100644
index e10868f..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/common/app.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-export TARGET_EXEC_NAME="user_info_client"
-# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
-export BUILD_PACKAGE="app"
-
-export TARGET_CONF_FILE="conf/client.yml"
-export TARGET_LOG_CONF_FILE="conf/log.yml"
diff --git a/configcenter/nacos/dubbo/go-client/assembly/common/build.sh b/configcenter/nacos/dubbo/go-client/assembly/common/build.sh
deleted file mode 100644
index d38f889..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/common/build.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-rm -rf target/
-
-PROJECT_HOME=`pwd`
-TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
-
-TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
-if [[ ${GOOS} == "windows" ]]; then
- TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
-fi
-TARGET_NAME=${TARGET_FOLDER}/${TARGET_SBIN_NAME}
-if [[ $PROFILE == "dev" || $PROFILE == "test" ]]; then
- # GFLAGS=-gcflags "-N -l" -race -x -v # -x会把go build的详细过程输出
- # GFLAGS=-gcflags "-N -l" -race -v
- # GFLAGS="-gcflags \"-N -l\" -v"
- cd ${BUILD_PACKAGE} && GOOS=$GOOS GOARCH=$GOARCH GO111MODULE=on go build -gcflags "-N -l" -x -v -i -o ${TARGET_NAME} && cd -
-else
- # -s去掉符号表(然后panic时候的stack trace就没有任何文件名/行号信息了,这个等价于普通C/C++程序被strip的效果),
- # -w去掉DWARF调试信息,得到的程序就不能用gdb调试了。-s和-w也可以分开使用,一般来说如果不打算用gdb调试,
- # -w基本没啥损失。-s的损失就有点大了。
- cd ${BUILD_PACKAGE} && GOOS=$GOOS GOARCH=$GOARCH GO111MODULE=on go build -ldflags "-w" -x -v -i -o ${TARGET_NAME} && cd -
-fi
-
-TAR_NAME=${TARGET_EXEC_NAME}-${version}-`date "+%Y%m%d-%H%M"`-${PROFILE}
-
-mkdir -p ${TARGET_FOLDER}/${TAR_NAME}
-
-SBIN_DIR=${TARGET_FOLDER}/${TAR_NAME}/sbin
-BIN_DIR=${TARGET_FOLDER}/${TAR_NAME}
-CONF_DIR=${TARGET_FOLDER}/${TAR_NAME}/conf
-
-mkdir -p ${SBIN_DIR}
-mkdir -p ${CONF_DIR}
-
-mv ${TARGET_NAME} ${SBIN_DIR}
-cp -r assembly/bin ${BIN_DIR}
-cd ${BIN_DIR}/bin/ && mv load.sh load_${TARGET_EXEC_NAME}.sh && cd -
-
-platform=$(uname)
-# modify APPLICATION_NAME
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-fi
-
-# modify TARGET_CONF_FILE
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-# modify TARGET_LOG_CONF_FILE
-if [ ${platform} == "Darwin" ]; then
- sed -i "" "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-cp -r profiles/${PROFILE}/* ${CONF_DIR}
-
-cd ${TARGET_FOLDER}
-
-tar czf ${TAR_NAME}.tar.gz ${TAR_NAME}/*
-
diff --git a/configcenter/nacos/dubbo/go-client/assembly/linux/dev.sh b/configcenter/nacos/dubbo/go-client/assembly/linux/dev.sh
deleted file mode 100644
index eada737..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/linux/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="dev"
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/linux/release.sh b/configcenter/nacos/dubbo/go-client/assembly/linux/release.sh
deleted file mode 100644
index 10eb3d7..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/linux/release.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/linux/test.sh b/configcenter/nacos/dubbo/go-client/assembly/linux/test.sh
deleted file mode 100644
index 78b650c..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/linux/test.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/mac/dev.sh b/configcenter/nacos/dubbo/go-client/assembly/mac/dev.sh
deleted file mode 100644
index c828476..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/mac/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="dev"
-
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/mac/release.sh b/configcenter/nacos/dubbo/go-client/assembly/mac/release.sh
deleted file mode 100644
index 91c2dfe..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/mac/release.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/mac/test.sh b/configcenter/nacos/dubbo/go-client/assembly/mac/test.sh
deleted file mode 100644
index a7853f5..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/mac/test.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/windows/dev.sh b/configcenter/nacos/dubbo/go-client/assembly/windows/dev.sh
deleted file mode 100644
index 10a3866..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/windows/dev.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-export PROFILE="dev"
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/windows/release.sh b/configcenter/nacos/dubbo/go-client/assembly/windows/release.sh
deleted file mode 100644
index 21af573..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/windows/release.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="release"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/assembly/windows/test.sh b/configcenter/nacos/dubbo/go-client/assembly/windows/test.sh
deleted file mode 100644
index 2104da8..0000000
--- a/configcenter/nacos/dubbo/go-client/assembly/windows/test.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-export PROFILE="test"
-export PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
- . ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
- sh ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-client/profiles/dev/client.yml b/configcenter/nacos/dubbo/go-client/profiles/dev/client.yml
deleted file mode 100644
index 0657bcb..0000000
--- a/configcenter/nacos/dubbo/go-client/profiles/dev/client.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-check: true
-# client
-request_timeout : "3s"
-# connect timeout
-connect_timeout : "3s"
-
-# application config
-application:
- organization : "ikurento.com"
- name : "BDTService"
- module : "dubbogo user-info client"
- version : "0.0.1"
- owner : "ZX"
- environment : "dev"
-
-config_center:
- protocol: "nacos"
- address: "127.0.0.1:8848"
-
-registries :
- "demoZk":
- protocol: "zookeeper"
- timeout : "3s"
- address: "127.0.0.1:2181"
- username: ""
- password: ""
-
-
-references:
- "UserProvider":
- # 可以指定多个registry,使用逗号隔开;不指定默认向所有注册中心注册
- registry: "demoZk"
- protocol : "dubbo"
- interface : "com.ikurento.user.UserProvider"
- cluster: "failover"
- methods :
- - name: "GetUser"
- retries: 3
-
-
-protocol_conf:
- dubbo:
- reconnect_interval: 0
- connection_number: 1
- heartbeat_period: "5s"
- session_timeout: "180s"
- pool_size: 4
- pool_ttl: 600
- getty_session_param:
- compress_encoding: false
- tcp_no_delay: true
- tcp_keep_alive: true
- keep_alive_period: "120s"
- tcp_r_buf_size: 262144
- tcp_w_buf_size: 65536
- pkg_rq_size: 1024
- pkg_wq_size: 512
- tcp_read_timeout: "1s"
- tcp_write_timeout: "5s"
- wait_timeout: "1s"
- max_msg_len: 1024000
- session_name: "client"
diff --git a/configcenter/nacos/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties b/configcenter/nacos/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties
deleted file mode 100644
index a7851e7..0000000
--- a/configcenter/nacos/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties
+++ /dev/null
@@ -1 +0,0 @@
-dubbo.service.com.ikurento.user.UserProvider.cluster=failover
\ No newline at end of file
diff --git a/configcenter/nacos/dubbo/go-client/profiles/dev/log.yml b/configcenter/nacos/dubbo/go-client/profiles/dev/log.yml
deleted file mode 100644
index 3ed242d..0000000
--- a/configcenter/nacos/dubbo/go-client/profiles/dev/log.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-level: "debug"
-development: true
-disableCaller: false
-disableStacktrace: false
-sampling:
-encoding: "console"
-
-# encoder
-encoderConfig:
- messageKey: "message"
- levelKey: "level"
- timeKey: "time"
- nameKey: "logger"
- callerKey: "caller"
- stacktraceKey: "stacktrace"
- lineEnding: ""
- levelEncoder: "capitalColor"
- timeEncoder: "iso8601"
- durationEncoder: "seconds"
- callerEncoder: "short"
- nameEncoder: ""
-
-outputPaths:
- - "stderr"
-errorOutputPaths:
- - "stderr"
-initialFields:
diff --git a/configcenter/nacos/dubbo/go-server/app/server.go b/configcenter/nacos/dubbo/go-server/app/server.go
deleted file mode 100644
index b415a3c..0000000
--- a/configcenter/nacos/dubbo/go-server/app/server.go
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "fmt"
- "os"
- "os/signal"
- "syscall"
- "time"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- _ "github.com/apache/dubbo-go/cluster/cluster_impl"
- _ "github.com/apache/dubbo-go/cluster/loadbalance"
- "github.com/apache/dubbo-go/common/logger"
- _ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
- "github.com/apache/dubbo-go/config"
- _ "github.com/apache/dubbo-go/config_center/nacos"
- _ "github.com/apache/dubbo-go/filter/filter_impl"
- _ "github.com/apache/dubbo-go/protocol/dubbo"
- _ "github.com/apache/dubbo-go/registry/protocol"
- _ "github.com/apache/dubbo-go/registry/zookeeper"
-)
-
-var (
- survivalTimeout = int(3e9)
-)
-
-// they are necessary:
-// export CONF_PROVIDER_FILE_PATH="xxx"
-// export APP_LOG_CONF_FILE="xxx"
-func main() {
-
- hessian.RegisterPOJO(&User{})
- config.Load()
-
- initSignal()
-}
-
-func initSignal() {
- signals := make(chan os.Signal, 1)
- // It is not possible to block SIGKILL or syscall.SIGSTOP
- signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
- for {
- sig := <-signals
- logger.Infof("get signal %s", sig.String())
- switch sig {
- case syscall.SIGHUP:
- // reload()
- default:
- time.AfterFunc(time.Duration(survivalTimeout), func() {
- logger.Warnf("app exit now by force...")
- os.Exit(1)
- })
-
- // The program exits normally or timeout forcibly exits.
- fmt.Println("provider app exit now...")
- return
- }
- }
-}
diff --git a/configcenter/nacos/dubbo/go-server/app/user.go b/configcenter/nacos/dubbo/go-server/app/user.go
deleted file mode 100644
index 89fa126..0000000
--- a/configcenter/nacos/dubbo/go-server/app/user.go
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "time"
-)
-
-import (
- "github.com/dubbogo/gost/log"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/config"
-)
-
-func init() {
- config.SetProviderService(new(UserProvider))
- // ------for hessian2------
- hessian.RegisterPOJO(&User{})
-}
-
-type User struct {
- Id string
- Name string
- Age int32
- Time time.Time
-}
-
-type UserProvider struct {
-}
-
-func (u *UserProvider) GetUser(ctx context.Context, req []interface{}) (*User, error) {
- gxlog.CInfo("req:%#v", req)
- rsp := User{"A001", "Alex Stocks", 18, time.Now()}
- gxlog.CInfo("rsp:%#v", rsp)
- return &rsp, nil
-}
-
-func (u *UserProvider) Reference() string {
- return "UserProvider"
-}
-
-func (u User) JavaClassName() string {
- return "com.ikurento.user.User"
-}
diff --git a/configcenter/nacos/dubbo/go-server/assembly/bin/load.sh b/configcenter/nacos/dubbo/go-server/assembly/bin/load.sh
deleted file mode 100644
index 90077c2..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/bin/load.sh
+++ /dev/null
@@ -1,151 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-APP_NAME="APPLICATION_NAME"
-APP_ARGS=""
-
-
-PROJECT_HOME=""
-OS_NAME=`uname`
-if [[ ${OS_NAME} != "Windows" ]]; then
- PROJECT_HOME=`pwd`
- PROJECT_HOME=${PROJECT_HOME}"/"
-fi
-
-export CONF_PROVIDER_FILE_PATH=${PROJECT_HOME}"TARGET_CONF_FILE"
-export APP_LOG_CONF_FILE=${PROJECT_HOME}"TARGET_LOG_CONF_FILE"
-
-usage() {
- echo "Usage: $0 start [conf suffix]"
- echo " $0 stop"
- echo " $0 term"
- echo " $0 restart"
- echo " $0 list"
- echo " $0 monitor"
- echo " $0 crontab"
- exit
-}
-
-start() {
- arg=$1
- if [ "$arg" = "" ];then
- echo "No registry type! Default server.yml!"
- else
- export CONF_PROVIDER_FILE_PATH=${CONF_PROVIDER_FILE_PATH//\.yml/\_$arg\.yml}
- fi
- if [ ! -f "${CONF_PROVIDER_FILE_PATH}" ];then
- echo $CONF_PROVIDER_FILE_PATH" is not existing!"
- return
- fi
- APP_LOG_PATH="${PROJECT_HOME}logs/"
- mkdir -p ${APP_LOG_PATH}
- APP_BIN=${PROJECT_HOME}sbin/${APP_NAME}
- chmod u+x ${APP_BIN}
- # CMD="nohup ${APP_BIN} ${APP_ARGS} >>${APP_NAME}.nohup.out 2>&1 &"
- CMD="${APP_BIN}"
- eval ${CMD}
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- CUR=`date +%FT%T`
- if [ "${PID}" != "" ]; then
- for p in ${PID}
- do
- echo "start ${APP_NAME} ( pid =" ${p} ") at " ${CUR}
- done
- fi
-}
-
-stop() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -SIGINT ${APP_NAME} ( pid =" ${ps} ")"
- kill -2 ${ps}
- done
- fi
-}
-
-
-term() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -9 ${APP_NAME} ( pid =" ${ps} ")"
- kill -9 ${ps}
- done
- fi
-}
-
-list() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s\n", $1, $2, $9, $10)}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s,%s\n", $1, $4, $6, $7, $8)}'`
- fi
-
- if [ "${PID}" != "" ]; then
- echo "list ${APP_NAME}"
-
- if [[ ${OS_NAME} == "Linux" || ${OS_NAME} == "Darwin" ]]; then
- echo "index: user, pid, start, duration"
- else
- echo "index: PID, WINPID, UID, STIME, COMMAND"
- fi
- idx=0
- for ps in ${PID}
- do
- echo "${idx}: ${ps}"
- ((idx ++))
- done
- fi
-}
-
-opt=$1
-case C"$opt" in
- Cstart)
- start $2
- ;;
- Cstop)
- stop
- ;;
- Cterm)
- term
- ;;
- Crestart)
- term
- start $2
- ;;
- Clist)
- list
- ;;
- C*)
- usage
- ;;
-esac
-
diff --git a/configcenter/nacos/dubbo/go-server/assembly/common/app.properties b/configcenter/nacos/dubbo/go-server/assembly/common/app.properties
deleted file mode 100644
index 1f0827e..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/common/app.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-TARGET_EXEC_NAME="user_info_server"
-# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
-BUILD_PACKAGE="app"
-
-TARGET_CONF_FILE="conf/server.yml"
-TARGET_LOG_CONF_FILE="conf/log.yml"
diff --git a/configcenter/nacos/dubbo/go-server/assembly/common/build.sh b/configcenter/nacos/dubbo/go-server/assembly/common/build.sh
deleted file mode 100644
index d90d026..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/common/build.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-rm -rf target/
-
-PROJECT_HOME=`pwd`
-TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
-
-TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
-if [[ ${GOOS} == "windows" ]]; then
- TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
-fi
-TARGET_NAME=${TARGET_FOLDER}/${TARGET_SBIN_NAME}
-if [[ $PROFILE = "test" ]]; then
- # GFLAGS=-gcflags "-N -l" -race -x -v # -x会把go build的详细过程输出
- # GFLAGS=-gcflags "-N -l" -race -v
- # GFLAGS="-gcflags \"-N -l\" -v"
- cd ${BUILD_PACKAGE} && GO111MODULE=on go build -gcflags "-N -l" -x -v -i -o ${TARGET_NAME} && cd -
-else
- # -s去掉符号表(然后panic时候的stack trace就没有任何文件名/行号信息了,这个等价于普通C/C++程序被strip的效果),
- # -w去掉DWARF调试信息,得到的程序就不能用gdb调试了。-s和-w也可以分开使用,一般来说如果不打算用gdb调试,
- # -w基本没啥损失。-s的损失就有点大了。
- cd ${BUILD_PACKAGE} && GO111MODULE=on go build -ldflags "-w" -x -v -i -o ${TARGET_NAME} && cd -
-fi
-
-TAR_NAME=${TARGET_EXEC_NAME}-${version}-`date "+%Y%m%d-%H%M"`-${PROFILE}
-
-mkdir -p ${TARGET_FOLDER}/${TAR_NAME}
-
-SBIN_DIR=${TARGET_FOLDER}/${TAR_NAME}/sbin
-BIN_DIR=${TARGET_FOLDER}/${TAR_NAME}
-CONF_DIR=${TARGET_FOLDER}/${TAR_NAME}/conf
-
-mkdir -p ${SBIN_DIR}
-mkdir -p ${CONF_DIR}
-
-mv ${TARGET_NAME} ${SBIN_DIR}
-cp -r assembly/bin ${BIN_DIR}
-# modify APPLICATION_NAME
-# OS=`uname`
-# if [[ $OS=="Darwin" ]]; then
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~APPLICATION_NAME~${TARGET_EXEC_NAME}~g" ${BIN_DIR}/bin/*
-fi
-# modify TARGET_CONF_FILE
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_CONF_FILE~${TARGET_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-# modify TARGET_LOG_CONF_FILE
-if [ "$(uname)" == "Darwin" ]; then
- sed -i "" "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-else
- sed -i "s~TARGET_LOG_CONF_FILE~${TARGET_LOG_CONF_FILE}~g" ${BIN_DIR}/bin/*
-fi
-
-cp -r profiles/${PROFILE}/* ${CONF_DIR}
-
-cd ${TARGET_FOLDER}
-
-tar czf ${TAR_NAME}.tar.gz ${TAR_NAME}/*
-
diff --git a/configcenter/nacos/dubbo/go-server/assembly/linux/dev.sh b/configcenter/nacos/dubbo/go-server/assembly/linux/dev.sh
deleted file mode 100644
index d830ac9..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/linux/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/assembly/linux/release.sh b/configcenter/nacos/dubbo/go-server/assembly/linux/release.sh
deleted file mode 100644
index 9930380..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/linux/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/assembly/linux/test.sh b/configcenter/nacos/dubbo/go-server/assembly/linux/test.sh
deleted file mode 100644
index 87144bb..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/linux/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=linux
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/assembly/mac/dev.sh b/configcenter/nacos/dubbo/go-server/assembly/mac/dev.sh
deleted file mode 100644
index 3a7659b..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/mac/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/assembly/mac/release.sh b/configcenter/nacos/dubbo/go-server/assembly/mac/release.sh
deleted file mode 100644
index 1c4bce4..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/mac/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/assembly/mac/test.sh b/configcenter/nacos/dubbo/go-server/assembly/mac/test.sh
deleted file mode 100644
index 69206e3..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/mac/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-set -e
-
-export GOOS=darwin
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
-
diff --git a/configcenter/nacos/dubbo/go-server/assembly/windows/dev.sh b/configcenter/nacos/dubbo/go-server/assembly/windows/dev.sh
deleted file mode 100644
index 011fb41..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/windows/dev.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=dev
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/assembly/windows/release.sh b/configcenter/nacos/dubbo/go-server/assembly/windows/release.sh
deleted file mode 100644
index 679a26a..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/windows/release.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=release
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/assembly/windows/test.sh b/configcenter/nacos/dubbo/go-server/assembly/windows/test.sh
deleted file mode 100644
index 4a36de0..0000000
--- a/configcenter/nacos/dubbo/go-server/assembly/windows/test.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-
-set -e
-
-export GOOS=windows
-export GOARCH=amd64
-
-PROFILE=test
-
-PROJECT_HOME=`pwd`
-
-if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
-. ${PROJECT_HOME}/assembly/common/app.properties
-fi
-
-
-if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
-. ${PROJECT_HOME}/assembly/common/build.sh
-fi
diff --git a/configcenter/nacos/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties b/configcenter/nacos/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties
deleted file mode 100644
index 54c19b1..0000000
--- a/configcenter/nacos/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-dubbo.service.com.ikurento.user.UserProvider.cluster=failback
-dubbo.service.com.ikurento.user.UserProvider.protocol=myDubbo
-dubbo.protocols.myDubbo.port=20000
-dubbo.protocols.myDubbo.name=dubbo
diff --git a/configcenter/nacos/dubbo/go-server/profiles/dev/log.yml b/configcenter/nacos/dubbo/go-server/profiles/dev/log.yml
deleted file mode 100644
index 3ed242d..0000000
--- a/configcenter/nacos/dubbo/go-server/profiles/dev/log.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-level: "debug"
-development: true
-disableCaller: false
-disableStacktrace: false
-sampling:
-encoding: "console"
-
-# encoder
-encoderConfig:
- messageKey: "message"
- levelKey: "level"
- timeKey: "time"
- nameKey: "logger"
- callerKey: "caller"
- stacktraceKey: "stacktrace"
- lineEnding: ""
- levelEncoder: "capitalColor"
- timeEncoder: "iso8601"
- durationEncoder: "seconds"
- callerEncoder: "short"
- nameEncoder: ""
-
-outputPaths:
- - "stderr"
-errorOutputPaths:
- - "stderr"
-initialFields:
diff --git a/configcenter/nacos/dubbo/go-server/profiles/dev/server.yml b/configcenter/nacos/dubbo/go-server/profiles/dev/server.yml
deleted file mode 100644
index 955e132..0000000
--- a/configcenter/nacos/dubbo/go-server/profiles/dev/server.yml
+++ /dev/null
@@ -1,62 +0,0 @@
-# dubbo server yaml configure file
-
-
-# application config
-application:
- organization : "ikurento.com"
- name : "BDTService"
- module : "dubbogo user-info server"
- version : "0.0.1"
- owner : "ZX"
- environment : "dev"
-
-config_center:
- protocol: "nacos"
- address: "127.0.0.1:8848"
-
-
-registries :
- "demoZk":
- protocol: "zookeeper"
- timeout : "3s"
- address: "127.0.0.1:2181"
-
-services:
- "UserProvider":
- # 可以指定多个registry,使用逗号隔开;不指定默认向所有注册中心注册
- registry: "demoZk"
- protocol : "dubbo"
- # 相当于dubbo.xml中的interface
- interface : "com.ikurento.user.UserProvider"
- loadbalance: "random"
- warmup: "100"
- cluster: "failover"
- methods:
- - name: "GetUser"
- retries: 1
- loadbalance: "random"
-
-protocols:
- "dubbo":
- name: "dubbo"
- port: 20000
-
-
-protocol_conf:
- dubbo:
- session_number: 700
- session_timeout: "180s"
- getty_session_param:
- compress_encoding: false
- tcp_no_delay: true
- tcp_keep_alive: true
- keep_alive_period: "120s"
- tcp_r_buf_size: 262144
- tcp_w_buf_size: 65536
- pkg_rq_size: 1024
- pkg_wq_size: 512
- tcp_read_timeout: "1s"
- tcp_write_timeout: "5s"
- wait_timeout: "1s"
- max_msg_len: 1024000
- session_name: "server"
diff --git a/configcenter/zookeeper/README.md b/configcenter/zookeeper/README.md
deleted file mode 100644
index bc6f23d..0000000
--- a/configcenter/zookeeper/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-### 1.Run zookeeper as config center
-
-```docker-compose -f docker/docker-compose.yaml up -d```
-
-### 2.Run java server & java client following [README](https://github.com/dubbogo/dubbo-samples/blob/master/golang/README.md)(You must run java program to initialize configuration in zookeeper)
-
-Java program will create consumer & provider common configuration in /dubbo/config/dubbo/dubbo.properties, consumer configuration in /dubbo/config/user-info-client/dubbo.properties
- and provider configuration in /dubbo/config/user-info-server/dubbo.properties.
-
-### 3.Run java server & go client
-
-Stop java client. Copy go client configuration file [dubbo.properties](https://github.com/dubbogo/dubbo-samples/blob/master/golang/configcenter/zookeeper/dubbo/go-client/profiles/dev/dubbo/config/user-info-client/dubbo.properties) as
-zookeeper file /dubbo/config/user-info-client/dubbo.properties in zookeeper node path /dubbo/config/user-info-client/.
-
-Use the script to set configuration file to zookeeper as below
-```
-./zkCli.sh -server 127.0.0.1:2181 set /dubbo/config/user-info-client/dubbo.properties "dubbo.service.com.ikurento.user.UserProvider.cluster=failback
-dubbo.service.com.ikurento.user.UserProvider.protocol=myDubbo
-dubbo.protocols.myDubbo.port=20000
-dubbo.protocols.myDubbo.name=dubbo
-"
-```
-
-Then start go client following [README](https://github.com/dubbogo/dubbo-samples/blob/master/golang/README.md).
-
-### 4.Run go server
-
-The same as step 3. Copy go server configuration file [dubbo.properties](https://github.com/dubbogo/dubbo-samples/blob/master/golang/configcenter/zookeeper/dubbo/go-server/profiles/dev/dubbo/config/user-info-server/dubbo.properties) as
-zookeeper file /dubbo/config/user-info-server/dubbo.properties in zookeeper node path /dubbo/config/user-info-server/.
-
-Use the script to set configuration file to zookeeper as below
-```
-./zkCli.sh -server 127.0.0.1:2181 set /dubbo/config/user-info-server/dubbo.properties "dubbo.service.com.ikurento.user.UserProvider.cluster=failback
-dubbo.service.com.ikurento.user.UserProvider.protocol=myDubbo
-dubbo.protocols.myDubbo.port=20000
-dubbo.protocols.myDubbo.name=dubbo
-"
-```
\ No newline at end of file
diff --git a/configcenter/zookeeper/docker/docker-compose.yaml b/configcenter/zookeeper/docker/docker-compose.yaml
deleted file mode 100644
index 4b7bd08..0000000
--- a/configcenter/zookeeper/docker/docker-compose.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-version: '3.1'
-
-services:
- zoo1:
- image: zookeeper
- container_name: zookeeper_1
- ports:
- - 2181:2181
diff --git a/configcenter/zookeeper/dubbo/go-client/app/client.go b/configcenter/zookeeper/dubbo/go-client/app/client.go
deleted file mode 100644
index 5e73b0e..0000000
--- a/configcenter/zookeeper/dubbo/go-client/app/client.go
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "fmt"
- "os"
- "os/signal"
- "syscall"
- "time"
-)
-
-import (
- "github.com/dubbogo/gost/log"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/common/logger"
- _ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
- "github.com/apache/dubbo-go/config"
- _ "github.com/apache/dubbo-go/protocol/dubbo"
- _ "github.com/apache/dubbo-go/registry/protocol"
-
- _ "github.com/apache/dubbo-go/filter/filter_impl"
-
- _ "github.com/apache/dubbo-go/cluster/cluster_impl"
- _ "github.com/apache/dubbo-go/cluster/loadbalance"
- _ "github.com/apache/dubbo-go/config_center/zookeeper"
- _ "github.com/apache/dubbo-go/registry/zookeeper"
-)
-
-var (
- survivalTimeout int = 10e9
-)
-
-// they are necessary:
-// export CONF_CONSUMER_FILE_PATH="xxx"
-// export APP_LOG_CONF_FILE="xxx"
-func main() {
- hessian.RegisterPOJO(&User{})
- config.Load()
- time.Sleep(1e9)
-
- gxlog.CInfo("\n\n\nstart to test dubbo")
- user := &User{}
- err := userProvider.GetUser(context.TODO(), []interface{}{"A001"}, user)
- if err != nil {
- panic(err)
- }
- gxlog.CInfo("response result: %v\n", user)
- initSignal()
-}
-
-func initSignal() {
- signals := make(chan os.Signal, 1)
- // It is not possible to block SIGKILL or syscall.SIGSTOP
- signal.Notify(signals, os.Interrupt, os.Kill, syscall.SIGHUP,
- syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
- for {
- sig := <-signals
- logger.Infof("get signal %s", sig.String())
- switch sig {
- case syscall.SIGHUP:
- // reload()
- default:
- time.AfterFunc(time.Duration(survivalTimeout), func() {
- logger.Warnf("app exit now by force...")
- os.Exit(1)
- })
-
- // The program exits normally or timeout forcibly exits.
- fmt.Println("app exit now...")
- return
- }
- }
-}
diff --git a/configcenter/zookeeper/dubbo/go-client/app/user.go b/configcenter/zookeeper/dubbo/go-client/app/user.go
deleted file mode 100644
index ff4486f..0000000
--- a/configcenter/zookeeper/dubbo/go-client/app/user.go
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package main
-
-import (
- "context"
- "time"
-)
-
-import (
- hessian "github.com/apache/dubbo-go-hessian2"
- "github.com/apache/dubbo-go/config"
-)
-
-var userProvider = new(UserProvider)
-
-func init() {
- config.SetConsumerService(userProvider)
- hessian.RegisterPOJO(&User{})
-}
-
-type User struct {
- Id string
- Name string
- Age int32
- Time time.Time
-}
-
-type UserProvider struct {
- GetUser func(ctx context.Context, req []interface{}, rsp *User) error
-}
-
-func (u *UserProvider) Reference() string {
- return "UserProvider"
-}
-
-func (User) JavaClassName() string {
- return "com.ikurento.user.User"
-}
diff --git a/configcenter/zookeeper/dubbo/go-client/assembly/bin/load.sh b/configcenter/zookeeper/dubbo/go-client/assembly/bin/load.sh
deleted file mode 100644
index ffa240b..0000000
--- a/configcenter/zookeeper/dubbo/go-client/assembly/bin/load.sh
+++ /dev/null
@@ -1,203 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-APP_NAME="APPLICATION_NAME"
-APP_ARGS=""
-SLEEP_INTERVAL=5
-MAX_LIFETIME=4000
-
-PROJECT_HOME=""
-OS_NAME=`uname`
-if [[ ${OS_NAME} != "Windows" ]]; then
- PROJECT_HOME=`pwd`
- PROJECT_HOME=${PROJECT_HOME}"/"
-else
- APP_NAME="APPLICATION_NAME.exe"
-fi
-
-export CONF_CONSUMER_FILE_PATH=${PROJECT_HOME}"TARGET_CONF_FILE"
-export APP_LOG_CONF_FILE=${PROJECT_HOME}"TARGET_LOG_CONF_FILE"
-# export GOTRACEBACK=system
-# export GODEBUG=gctrace=1
-
-usage() {
- echo "Usage: $0 start [conf suffix]"
- echo " $0 stop"
- echo " $0 term"
- echo " $0 restart"
- echo " $0 list"
- echo " $0 monitor"
- echo " $0 crontab"
- exit
-}
-
-start() {
- arg=$1
- if [ "$arg" = "" ];then
- echo "No registry type! Default client.yml!"
- else
- export CONF_CONSUMER_FILE_PATH=${CONF_CONSUMER_FILE_PATH//\.yml/\_$arg\.yml}
- fi
- if [ ! -f "${CONF_CONSUMER_FILE_PATH}" ];then
- echo $CONF_CONSUMER_FILE_PATH" is not existing!"
- return
- fi
- APP_LOG_PATH=${PROJECT_HOME}"logs/"
- mkdir -p ${APP_LOG_PATH}
- APP_BIN=${PROJECT_HOME}sbin/${APP_NAME}
- chmod u+x ${APP_BIN}
- # CMD="nohup ${APP_BIN} ${APP_ARGS} >>${APP_NAME}.nohup.out 2>&1 &"
- CMD="${APP_BIN}"
- eval ${CMD}
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- CUR=`date +%FT%T`
- if [ "${PID}" != "" ]; then
- for p in ${PID}
- do
- echo "start ${APP_NAME} ( pid =" ${p} ") at " ${CUR}
- done
- fi
-}
-
-stop() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -SIGINT ${APP_NAME} ( pid =" ${ps} ")"
- kill -2 ${ps}
- done
- fi
-}
-
-
-term() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [ "${PID}" != "" ];
- then
- for ps in ${PID}
- do
- echo "kill -9 ${APP_NAME} ( pid =" ${ps} ")"
- kill -9 ${ps}
- done
- fi
-}
-
-list() {
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s\n", $1, $2, $9, $10)}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{printf("%s,%s,%s,%s,%s\n", $1, $4, $6, $7, $8)}'`
- fi
-
- if [ "${PID}" != "" ]; then
- echo "list ${APP_NAME}"
-
- if [[ ${OS_NAME} == "Linux" || ${OS_NAME} == "Darwin" ]]; then
- echo "index: user, pid, start, duration"
- else
- echo "index: PID, WINPID, UID, STIME, COMMAND"
- fi
- idx=0
- for ps in ${PID}
- do
- echo "${idx}: ${ps}"
- ((idx ++))
- done
- fi
-}
-
-monitor() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- done
-}
-
-crontab() {
- idx=0
- while true; do
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $2}'`
- if [[ ${OS_NAME} != "Linux" && ${OS_NAME} != "Darwin" ]]; then
- PID=`ps aux | grep -w ${APP_NAME} | grep -v grep | awk '{print $1}'`
- fi
- if [[ "${PID}" == "" ]]; then
- start
- idx=0
- fi
-
- ((LIFE=idx*${SLEEP_INTERVAL}))
- echo "${APP_NAME} ( pid = " ${PID} ") has been working in normal state for " $LIFE " seconds."
- ((idx ++))
- sleep ${SLEEP_INTERVAL}
- if [[ ${LIFE} -gt ${MAX_LIFETIME} ]]; then
- kill -9 ${PID}
- fi
- done
-}
-
-opt=$1
-case C"$opt" in
- Cstart)
- start $2
- ;;
- Cstop)
- stop
- ;;
- Cterm)
- term
- ;;
- Crestart)
- term
- start $2
- ;;
- Clist)
- list
- ;;
- Cmonitor)
- monitor
- ;;
- Ccrontab)
- crontab
- ;;
- C*)
- usage
- ;;
-esac
-
diff --git a/configcenter/zookeeper/dubbo/go-client/assembly/common/app.properties b/configcenter/zookeeper/dubbo/go-client/assembly/common/app.properties
deleted file mode 100644
index e10868f..0000000
--- a/configcenter/zookeeper/dubbo/go-client/assembly/common/app.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-export TARGET_EXEC_NAME="user_info_client"
-# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
-export BUILD_PACKAGE="app"
-
-export TARGET_CONF_FILE="conf/client.yml"
-export TARGET_LOG_CONF_FILE="conf/log.yml"
diff --git a/configcenter/zookeeper/dubbo/go-client/assembly/common/build.sh b/configcenter/zookeeper/dubbo/go-client/assembly/common/build.sh
deleted file mode 100644
index d38f889..0000000
--- a/configcenter/zookeeper/dubbo/go-client/assembly/common/build.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-rm -rf target/
-
-PROJECT_HOME=`pwd`
-TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
-
-TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
-if [[ ${GOOS} == "windows" ]]; then
- TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
-fi
-TARGET_NAME=${TARGET_FOLDER}/${TARGET_SBIN_NAME}
-if [[ $PROFILE == "dev" || $PROFILE == "test" ]]; then
... 78880 lines suppressed ...