You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/07/24 14:09:25 UTC

[dubbo-go-samples] branch master updated (c6e88ca -> cce405e)

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

alexstocks pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git.


    from c6e88ca  mod imports (#169)
     add 9ced87c  upgrade dubbo-go & dubbo-go-hessian2 version
     add 9c9ad16  Merge branch 'master' of https://github.com/apache/dubbo-go-samples
     new 63d0718  Merge branch 'master' of https://github.com/apache/dubbo-go-samples
     new cce405e  Pls. --> Pls

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md | 10 +++++-----
 go.mod    |  4 ++--
 go.sum    |  4 ++++
 3 files changed, 11 insertions(+), 7 deletions(-)

[dubbo-go-samples] 01/02: Merge branch 'master' of https://github.com/apache/dubbo-go-samples

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 63d07187cfd81533626d4d9ce0149a35206b1bc9
Merge: 9c9ad16 c6e88ca
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Sat Jul 24 22:08:44 2021 +0800

    Merge branch 'master' of https://github.com/apache/dubbo-go-samples

 .run/openzipkin/zipkin-go-client.run.xml           |  15 ++
 .run/openzipkin/zipkin-go-server-a.run.xml         |  16 ++
 .run/openzipkin/zipkin-go-server-b.run.xml         |  15 ++
 README.md                                          |   4 +-
 README_zh.md                                       |   4 +-
 async/go-client/cmd/client.go                      |   1 +
 async/go-client/pkg/user.go                        |   1 +
 async/go-server/pkg/user.go                        |   1 +
 async/go-server/tests/integration/main_test.go     |   1 +
 .../tests/integration/userprovider_test.go         |   2 +
 attachment/go-client/cmd/client.go                 |  11 +-
 attachment/go-server/cmd/server.go                 |   8 +-
 attachment/go-server/pkg/user.go                   |   6 +-
 .../go-server/tests/integration/main_test.go       |  13 +-
 .../tests/integration/userprovider_test.go         |   2 +
 chain/backend/cmd/server.go                        |   8 +-
 chain/backend/tests/integration/main_test.go       |  12 +-
 chain/backend/tests/integration/services_test.go   |   1 +
 chain/frontend/cmd/client.go                       |   8 +-
 chain/middle/cmd/server.go                         |   8 +-
 chain/middle/tests/integration/main_test.go        |  12 +-
 chain/middle/tests/integration/services_test.go    |   4 +-
 config-api/go-client/cmd/client.go                 |   1 +
 config-api/go-server/pkg/user.go                   |   1 +
 .../go-server/tests/integration/main_test.go       |   2 -
 .../tests/integration/userprovider_test.go         |   1 +
 configcenter/apollo/go-client/cmd/client.go        |   1 +
 configcenter/apollo/go-server/cmd/server.go        |   2 -
 configcenter/apollo/go-server/pkg/user.go          |   1 +
 configcenter/nacos/go-client/cmd/client.go         |   1 +
 configcenter/nacos/go-server/pkg/user.go           |   1 +
 configcenter/zookeeper/go-client/cmd/client.go     |   1 +
 configcenter/zookeeper/go-server/pkg/user.go       |   1 +
 context/go-client/cmd/client.go                    |   1 +
 context/go-server/pkg/user.go                      |   1 +
 .../tests/integration/userprovider_test.go         |   2 +
 direct/go-client/cmd/client.go                     |   1 +
 direct/go-server/pkg/user.go                       |   1 +
 .../tests/integration/userprovider_test.go         |   3 +-
 docker/go-client/cmd/client.go                     |   1 +
 docker/go-server/pkg/user.go                       |   1 +
 filter/custom/go-client/cmd/client.go              |   1 +
 filter/custom/go-server/pkg/custom_filter.go       |   1 +
 filter/custom/go-server/pkg/user.go                |   1 +
 .../tests/integration/userprovider_test.go         |   1 +
 filter/sentinel/go-client/cmd/client.go            |   2 +
 filter/sentinel/go-server/cmd/server.go            |   1 +
 filter/sentinel/go-server/pkg/user.go              |   1 +
 .../tests/integration/userprovider_test.go         |   1 +
 filter/tpslimit/go-server/pkg/limit_strategy.go    |   1 +
 filter/tpslimit/go-server/pkg/user.go              |   1 +
 game/go-server-game/cmd/server.go                  |  42 ++---
 game/go-server-game/pkg/consumer.go                |   6 +-
 game/go-server-game/pkg/provider.go                |  16 +-
 .../tests/integration/gameprovider_test.go         |  10 +-
 game/go-server-game/tests/integration/main_test.go |  40 ++---
 game/go-server-gate/cmd/server.go                  |  58 +++----
 game/go-server-gate/pkg/consumer.go                |   9 +-
 game/go-server-gate/pkg/provider.go                |  11 +-
 .../tests/integration/gateprovider_test.go         |  10 +-
 game/go-server-gate/tests/integration/main_test.go |  40 ++---
 game/pkg/consumer/game/basketball.go               |   7 +-
 game/pkg/consumer/gate/basketball.go               |   7 +-
 game/pkg/pojo/info.go                              |   2 +-
 general/dubbo/go-client/cmd/client.go              |  13 +-
 general/dubbo/go-server/cmd/server.go              |  18 +--
 general/dubbo/go-server/pkg/user_provider.go       |   9 +-
 .../dubbo/go-server/tests/integration/main_test.go |  21 ++-
 .../tests/integration/userprovider_test.go         |   9 +-
 general/grpc/go-client/cmd/client.go               |  11 +-
 general/grpc/go-client/conf/client.yml             |   2 +-
 general/grpc/go-server/cmd/server.go               |   5 +-
 general/grpc/go-server/conf/client.yml             |   2 +-
 general/grpc/go-server/conf/server.yml             |   2 +-
 general/grpc/go-server/pkg/greeter.go              |   7 +-
 .../go-server/tests/integration/greeter_test.go    |  10 +-
 .../grpc/go-server/tests/integration/main_test.go  |  26 +--
 general/grpc/protobuf/helloworld.pb.go             |  19 ++-
 general/grpc/stream/go-client/app/client.go        |   8 +-
 general/grpc/stream/go-client/app/hello.go         |  50 ------
 general/grpc/stream/go-client/app/helloworld.pb.go |  15 +-
 .../grpc/stream/go-client/profiles/dev/client.yml  |  46 +++---
 .../grpc/stream/go-client/profiles/test/client.yml |  42 +++--
 general/grpc/stream/go-server/app/greeter.go       |   4 -
 general/grpc/stream/go-server/app/helloworld.pb.go |  16 +-
 .../grpc/stream/go-server/profiles/dev/server.yml  |  36 ++---
 .../stream/go-server/profiles/release/server.yml   |  35 ++--
 .../grpc/stream/go-server/profiles/test/server.yml |   8 +-
 general/grpc/unary/go-client/app/client.go         |  11 +-
 general/grpc/unary/go-client/app/hello.go          |  43 -----
 general/grpc/unary/go-client/app/helloworld.pb.go  |  26 +--
 general/grpc/unary/go-client/app/helloworld.proto  |   4 +-
 .../grpc/unary/go-client/profiles/dev/client.yml   |   2 +-
 .../unary/go-client/profiles/release/client.yml    |   2 +-
 .../grpc/unary/go-client/profiles/test/client.yml  |   2 +-
 general/grpc/unary/go-server/app/greeter.go        |  16 +-
 general/grpc/unary/go-server/app/helloworld.pb.go  |  65 ++++----
 .../grpc/unary/go-server/profiles/dev/server.yml   |   2 +-
 .../unary/go-server/profiles/release/server.yml    |   2 +-
 .../grpc/unary/go-server/profiles/test/server.yml  |   2 +-
 general/jsonrpc/go-client/app/client.go            |  14 +-
 general/jsonrpc/go-server/app/server.go            |   8 +-
 general/jsonrpc/go-server/app/user_provider.go     |   5 +-
 general/jsonrpc/go-server/app/user_provider1.go    |   5 +-
 general/jsonrpc/go-server/app/user_provider2.go    |   5 +-
 general/rest/go-client/cmd/client.go               | 176 ++------------------
 general/rest/go-server/cmd/server.go               |  12 +-
 general/rest/go-server/pkg/user.go                 |   5 +
 general/rest/go-server/pkg/user_provider.go        |   7 +-
 general/rest/go-server/pkg/user_provider1.go       |   7 +-
 general/rest/go-server/pkg/user_provider2.go       |   7 +-
 .../rest/go-server}/tests/integration/main_test.go |  21 ++-
 .../tests/integration/userprovider_test.go         | 145 +++++++++++++++++
 generic/go-client/cmd/client.go                    |  11 +-
 generic/go-server/cmd/server.go                    |   3 +-
 generic/go-server/pkg/user.go                      |   6 +-
 generic/go-server/tests/integration/main_test.go   |  12 +-
 .../tests/integration/userprovider_test.go         |   4 +-
 go.mod                                             |   5 +-
 go.sum                                             |  18 +++
 group/go-client/cmd/client.go                      |  11 +-
 group/go-server-group-a/pkg/user.go                |   1 +
 .../tests/integration/main_test.go                 |   3 +-
 .../tests/integration/userprovider_test.go         |   1 +
 group/go-server-group-b/pkg/user.go                |   1 +
 .../tests/integration/main_test.go                 |   3 +-
 helloworld/go-client/cmd/client.go                 |   1 +
 metric/go-client/cmd/client.go                     |   1 +
 metric/go-server/cmd/server.go                     |   4 +-
 metric/go-server/pkg/user.go                       |   9 +-
 metric/go-server/tests/integration/main_test.go    |  17 +-
 .../tests/integration/userprovider_test.go         |   1 +
 multi-registry/go-client/cmd/client.go             |   2 +-
 multi-registry/go-server/cmd/server.go             |   1 -
 multi-registry/go-server/pkg/user.go               |   6 +-
 .../go-server/tests/integration/main_test.go       |  14 +-
 .../tests/integration/userprovider_test.go         |   1 +
 multi-zone/go-client/cmd/client.go                 |   2 +-
 .../go-client/tests/integration/main_test.go       |  14 +-
 .../tests/integration/userprovider_test.go         |   9 +-
 multi-zone/go-server-hz/pkg/user.go                |   1 +
 .../tests/integration/userprovider_test.go         |   1 +
 multi-zone/go-server-sh/pkg/user.go                |   1 +
 .../go-server-sh/tests/integration/main_test.go    |   2 -
 .../tests/integration/userprovider_test.go         |   1 +
 openzipkin/README.md                               | 174 ++++++++++++++++++++
 openzipkin/README_zh.md                            | 179 +++++++++++++++++++++
 openzipkin/doc/app_dependency.png                  | Bin 0 -> 32882 bytes
 openzipkin/doc/zipkin_trace.png                    | Bin 0 -> 319434 bytes
 openzipkin/docker-compose.yml                      |  58 +++++++
 .../app => openzipkin/go-client/cmd}/client.go     | 143 ++++++++++------
 .../go-client}/conf/client.yml                     |  30 ++--
 openzipkin/go-client/conf/log.yml                  |  27 ++++
 .../hello.go => openzipkin/go-client/pkg/user.go   |  30 +++-
 .../app => openzipkin/go-server-a/cmd}/server.go   |  43 ++---
 .../go-server-a}/conf/client.yml                   |  20 +--
 openzipkin/go-server-a/conf/log.yml                |  27 ++++
 .../go-server-a/conf}/server.yml                   |  36 +++--
 openzipkin/go-server-a/docker/docker-compose.yml   |   9 ++
 .../go-server-a}/pkg/user.go                       |  33 +++-
 .../go-server-a}/tests/integration/main_test.go    |  17 +-
 .../tests/integration/userprovider_test.go         |   1 +
 .../app => openzipkin/go-server-b/cmd}/server.go   |  44 ++---
 .../go-server-b}/conf/client.yml                   |  21 +--
 openzipkin/go-server-b/conf/log.yml                |  27 ++++
 .../go-server-b/conf}/server.yml                   |  26 +--
 openzipkin/go-server-b/docker/docker-compose.yml   |   9 ++
 .../go-server-b}/pkg/user.go                       |  12 +-
 .../go-server-b}/tests/integration/main_test.go    |  17 +-
 .../tests/integration/userprovider_test.go         |   3 +-
 .../prometheus/create-datasource-and-dashboard.sh  |  33 ++++
 openzipkin/prometheus/prometheus.yml               |  13 ++
 registry/etcd/go-client/cmd/client.go              |  11 +-
 registry/etcd/go-server/cmd/server.go              |   6 +-
 registry/etcd/go-server/pkg/user.go                |   6 +-
 .../etcd/go-server/tests/integration/main_test.go  |  17 +-
 .../tests/integration/userprovider_test.go         |   1 +
 registry/nacos/go-client/cmd/client.go             |  11 +-
 registry/nacos/go-server/pkg/user.go               |   6 +-
 .../nacos/go-server/tests/integration/main_test.go |  17 +-
 .../tests/integration/userprovider_test.go         |   1 +
 .../consul/go-client/cmd/client.go                 |  20 ++-
 .../consul/go-server/cmd/server.go                 |  25 ++-
 .../consul/go-server/pkg/pojo/user.go              |   2 -
 .../go-server/tests/integration/main_test.go       |   1 -
 .../tests/integration/userprovider_test.go         |   1 +
 .../servicediscovery/etcd/go-client/cmd/client.go  |  12 +-
 .../servicediscovery/etcd/go-server/cmd/server.go  |   6 +-
 .../servicediscovery/etcd/go-server/pkg/user.go    |   6 +-
 .../etcd/go-server/tests/integration/main_test.go  |  15 +-
 .../tests/integration/userprovider_test.go         |   1 +
 .../servicediscovery/file/go-client/cmd/client.go  |  12 +-
 .../servicediscovery/file/go-server/cmd/server.go  |   6 +-
 .../servicediscovery/file/go-server/pkg/user.go    |   6 +-
 .../file/go-server/tests/integration/main_test.go  |  15 +-
 .../tests/integration/userprovider_test.go         |   1 +
 .../servicediscovery/nacos/go-client/cmd/client.go |  12 +-
 .../servicediscovery/nacos/go-server/cmd/server.go |   6 +-
 .../servicediscovery/nacos/go-server/pkg/user.go   |   6 +-
 .../nacos/go-server/tests/integration/main_test.go |  15 +-
 .../tests/integration/userprovider_test.go         |   1 +
 .../zookeeper/go-client/cmd/client.go              |  12 +-
 .../zookeeper/go-server/cmd/server.go              |   6 +-
 .../zookeeper/go-server/pkg/user.go                |   6 +-
 .../go-server/tests/integration/main_test.go       |  17 +-
 .../tests/integration/userprovider_test.go         |   1 +
 router/condition/go-client/cmd/client.go           |   3 +-
 .../go-server/tests/integration/main_test.go       |  15 +-
 .../tests/integration/userprovider_test.go         |   1 +
 router/tag/go-client/cmd/client.go                 |   1 +
 .../tag/go-server/tests/integration/main_test.go   |  14 +-
 .../tests/integration/userprovider_test.go         |   1 +
 seata/client/app/client.go                         |  17 +-
 seata/client/app/svc/svc.go                        |   1 +
 seata/order-svc/app/dao/dao.go                     |   5 +-
 seata/order-svc/app/order_svc.go                   |   1 +
 seata/order-svc/app/server.go                      |  19 ++-
 seata/product-svc/app/dao/dao.go                   |   1 +
 seata/product-svc/app/product_svc.go               |   1 +
 seata/product-svc/app/server.go                    |  19 ++-
 shopping-order/go-client/cmd/client.go             |   1 +
 shopping-order/go-client/pkg/svc.go                |   1 +
 shopping-order/go-server-order/cmd/order_svc.go    |   1 +
 shopping-order/go-server-order/cmd/server.go       |   2 +
 shopping-order/go-server-order/pkg/dao/dao.go      |   1 +
 .../go-server-product/cmd/product_svc.go           |   1 +
 shopping-order/go-server-product/cmd/server.go     |   2 +
 shopping-order/go.sum                              |  29 ++++
 start_integrate_test.sh                            |   2 +-
 tls/go-client/cmd/client.go                        |   4 +-
 tls/go-server/cmd/server.go                        |   4 +-
 tls/go-server/pkg/user.go                          |   2 +-
 tls/go-server/tests/integration/main_test.go       |   1 +
 tracing/dubbo/go-client/app/client.go              |  23 ++-
 tracing/dubbo/go-server/app/server.go              |  22 ++-
 tracing/dubbo/go-server/app/user.go                |   9 +-
 tracing/grpc/README_zh.md                          |  43 +++++
 tracing/grpc/go-client/app/client.go               |  12 +-
 tracing/grpc/go-client/app/hello.go                |   6 +-
 tracing/grpc/go-client/app/helloworld.pb.go        |  13 +-
 tracing/grpc/go-server/app/helloworld.pb.go        |  12 +-
 tracing/grpc/go-server/app/server.go               |   1 +
 tracing/jsonrpc/go-client/app/client.go            |  23 ++-
 tracing/jsonrpc/go-server/app/server.go            |  20 ++-
 tracing/jsonrpc/go-server/app/user_provider.go     |   6 +-
 tracing/jsonrpc/go-server/app/user_provider1.go    |   5 +-
 tracing/jsonrpc/go-server/app/user_provider2.go    |   7 +-
 version/go-client/cmd/client.go                    |   1 +
 version/go-server-v1/pkg/user.go                   |   1 +
 .../tests/integration/userprovider_test.go         |   1 -
 version/go-server-v2/pkg/user.go                   |   1 +
 .../tests/integration/userprovider_test.go         |   1 -
 252 files changed, 2034 insertions(+), 1263 deletions(-)


[dubbo-go-samples] 02/02: Pls. --> Pls

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit cce405e816f928f7374d4c7a9f9b4959d4449417
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Sat Jul 24 22:09:28 2021 +0800

    Pls. --> Pls
---
 README.md | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 9da44f2..11ad476 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
 ## What It Contains
 
 * async: An async example.
-* attachment: An attachment example, to show how to use attachment to pass user data from the client to the server.  
+* attachment: An attachment example, to show how to use attachment to pass user data from the client to the server.
 * chain: Show an example of calling chain
 * config-api: Use API to config Dubbo-go
 * configcenter: Uses of different config centers, including zookeeper, apollo and nacos at present.
@@ -33,11 +33,11 @@
 
 ## How To Run
 
-Pls. refer [How To Run](HOWTO.md) for the instructions.
+Pls refer [How To Run](HOWTO.md) for the instructions.
 
 ## How to contribute
 
 If you want to add more samples, pls. read on:
-1. Create new sub directory and give it an appropriate name for your new sample. Pls. follow the layout of the existing sample if you are not sure how to organize your code.
-2. Make sure your sample work as expected before submit PR, and make sure GitHub CI passes after PR is submitted. Pls. refer to the existing sample on how to test the sample.   
-3. Pls. provide README.md to explain your samples.
+1. Create new sub directory and give it an appropriate name for your new sample. Pls follow the layout of the existing sample if you are not sure how to organize your code.
+2. Make sure your sample work as expected before submit PR, and make sure GitHub CI passes after PR is submitted. Pls refer to the existing sample on how to test the sample.
+3. Pls provide README.md to explain your samples.