You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by xi...@apache.org on 2020/03/15 15:05:05 UTC

[dubbo-go] branch develop updated (7a7acef -> cfbd042)

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

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


    from 7a7acef  Merge pull request #411 from flycash/release_not
     add 64b9439  init rest protocol
     add 5cbba12  rest configs and invoker
     add 2d3a6f7  fix
     add 69020c0  fixed
     add b3fabce  Merge branch 'develop' into rest_protocol
     add 547372f  init rest exporter and modify rest invoker
     add 5120254  header params
     add d5fccd6  resty add header params
     add c31030f  fix
     add cbc59d3  go restful server and some unit tests
     add f1908a0  modify
     add 567acb1  modify test
     add 9acc7aa  Merge branch 'develop' into rest_protocol
     add e899345  Merge pull request #347 from apache/develop
     add 6a6717f  Merge branch 'feature/rest' into rest_protocol
     add f48a644  fix
     add eb1d850  fix tests
     add 756f87f  use "default" constant and remove default timeout options
     add 88300f4  add licenses
     add d9c61c4  fmt imports
     add 9538a34  fix config initializer
     add f51ae5d  add some unit tests
     add 8d1dc02  add testdata about rest config file
     add a957054  add licenses
     add d93a2a3  Merge pull request #329 from Patrick0308/rest_protocol
     add 114fe40  change service key to path key
     add 01361a6  fix serviceKey
     add 8b884cc  support req[]
     add fd0a076  fix when args is req[]
     add b67b76a  fix path bug
     add b692796  modify server default consumes and produces
     add bc64aed  Merge pull request #353 from Patrick0308/rest_protocol
     add 5f90f48  Merge develop
     add fd61cc2  Fix review and test
     add cd58dfa  Fix review and test
     add 5af6942  Fix review and test
     add eb22fbd  Fix review and test
     add b8ac514  Merge pull request #368 from flycash/rest
     add 5b76b7c  split import
     add a9c5f8f  split import
     add c8a5d15  Merge branch 'rest_protocol' of https://github.com/Patrick0308/dubbo-go into rest_protocol
     add 4738480  Merge pull request #370 from Patrick0308/rest_protocol
     add 4e6aa04  add licenses
     add 3b46dce  split import
     add 5add5e2  remove x/tools
     add 4b01d83  Merge pull request #387 from Patrick0308/rest_protocol
     add b40361e  fix haven't read error msg
     add 182a367  Merge pull request #392 from Patrick0308/rest_protocol
     add 1829072  modify rest
     add 3a46e04  add rest unit tests
     add fa27aa2  modify rest protocol
     add 84a2b65  Merge pull request #394 from Patrick0308/rest
     add fa5ee68  rest protocol modify
     add f3b5be5  Merge remote-tracking branch 'upstream/develop' into rest
     add 47e3150  change yaml unmarshal function to common package
     add f184ee9  modify yaml
     add f8f2b56  Merge pull request #395 from Patrick0308/rest
     add 1fd0ddb  modify rest
     add 73119b4  Merge pull request #396 from Patrick0308/rest
     add 0c55d99  add yaml unit test
     add 46af97f  Merge pull request #399 from Patrick0308/rest
     add fea9106  modify rest config
     add c77e8ff  modify rest interface dir
     add f5fdc0e  modify rest
     add 007dd79  modify default reader
     add 3271f08  modify error info
     add 3364d36  modify
     add e9fc1f8  modify
     add dafc2f4  Merge pull request #402 from Patrick0308/rest
     add 2d8a5cc  Merge remote-tracking branch 'apache/develop' into feature/rest
     add 69de204  Ref: refact config loader
     add b988571  Merge remote-tracking branch 'apache/develop' into feature/rest
     add a1ff189  fix rest
     add e81095f  add license
     add 72fac64  fix test
     add 8c53128  Merge pull request #408 from Patrick0308/rest
     add 57a2a8f  Mrg: merge upstream
     add 66d8a1a  Del: delete config/rest
     add 4c50edc  Fix: resolve travis
     add 1e9392a  Imp: improve config reader
     add 17c29b5  Fix: fix nil point
     add d7cc3af  Fix: reviews
     add a4c9d8c  Merge pull request #410 from fangyincheng/feature/rest
     add 639ddef  Fix: fomat import
     add 7e7dfdb  Mod: rename file name
     new cfbd042  Merge pull request #352 from apache/feature/rest

The 1 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:
 common/constant/default.go                         |   2 +
 common/constant/key.go                             |  43 ++-
 common/constant/time.go                            |   2 +
 common/extension/auth.go                           |   6 +
 .../extension/config_reader.go                     |  35 ++-
 common/extension/{cluster.go => rest_client.go}    |  18 +-
 common/extension/{cluster.go => rest_server.go}    |  18 +-
 common/yaml/testdata/config.yml                    |   7 +
 .../condition/app_router.go => common/yaml/yaml.go |  40 +--
 common/yaml/yaml_test.go                           |  58 ++++
 config/base_config.go                              |  29 +-
 config/base_config_test.go                         |  11 -
 config/condition_router_config.go                  |   3 +-
 config/config_loader.go                            |  30 ++
 config/consumer_config.go                          |  14 +-
 config/interfaces/config_reader.go                 |   9 +
 config/provider_config.go                          |  12 +-
 config_center/nacos/client.go                      |   2 +-
 config_center/nacos/facade.go                      |   9 +-
 go.mod                                             |   2 +
 go.sum                                             |   6 +
 protocol/rest/client/client_impl/resty_client.go   |  85 ++++++
 .../rest/client/rest_client.go                     |  32 ++-
 protocol/rest/config/reader/rest_config_reader.go  | 158 +++++++++++
 .../rest/config/reader/rest_config_reader_test.go  |  43 ++-
 .../config/reader/testdata/consumer_config.yml     |  50 ++--
 .../config/reader}/testdata/provider_config.yml    | 188 ++++++-------
 protocol/rest/config/rest_config.go                | 153 ++++++++++
 .../dubbo_exporter.go => rest/rest_exporter.go}    |  22 +-
 protocol/rest/rest_invoker.go                      | 109 ++++++++
 protocol/rest/rest_invoker_test.go                 | 196 +++++++++++++
 protocol/rest/rest_protocol.go                     | 156 +++++++++++
 protocol/rest/rest_protocol_test.go                | 186 ++++++++++++
 .../rest/server/rest_server.go                     |  13 +-
 .../rest/server/server_impl/go_restful_server.go   | 311 +++++++++++++++++++++
 registry/base_registry.go                          |  46 ++-
 36 files changed, 1787 insertions(+), 317 deletions(-)
 copy cluster/cluster_impl/registry_aware_cluster.go => common/extension/config_reader.go (52%)
 copy common/extension/{cluster.go => rest_client.go} (62%)
 copy common/extension/{cluster.go => rest_server.go} (67%)
 create mode 100644 common/yaml/testdata/config.yml
 copy cluster/router/condition/app_router.go => common/yaml/yaml.go (51%)
 create mode 100644 common/yaml/yaml_test.go
 create mode 100644 config/interfaces/config_reader.go
 create mode 100644 protocol/rest/client/client_impl/resty_client.go
 copy metrics/reporter.go => protocol/rest/client/rest_client.go (65%)
 create mode 100644 protocol/rest/config/reader/rest_config_reader.go
 copy config_center/nacos/client_test.go => protocol/rest/config/reader/rest_config_reader_test.go (54%)
 copy config/testdata/consumer_config_withoutProtocol.yml => protocol/rest/config/reader/testdata/consumer_config.yml (56%)
 copy {config => protocol/rest/config/reader}/testdata/provider_config.yml (60%)
 create mode 100644 protocol/rest/config/rest_config.go
 copy protocol/{dubbo/dubbo_exporter.go => rest/rest_exporter.go} (70%)
 create mode 100644 protocol/rest/rest_invoker.go
 create mode 100644 protocol/rest/rest_invoker_test.go
 create mode 100644 protocol/rest/rest_protocol.go
 create mode 100644 protocol/rest/rest_protocol_test.go
 copy cluster/directory.go => protocol/rest/server/rest_server.go (76%)
 create mode 100644 protocol/rest/server/server_impl/go_restful_server.go


[dubbo-go] 01/01: Merge pull request #352 from apache/feature/rest

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

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

commit cfbd042e0e6666308e53f3a1d56a1e52dab3764d
Merge: 7a7acef 7e7dfdb
Author: vito.he <hx...@gmail.com>
AuthorDate: Sun Mar 15 10:04:59 2020 -0500

    Merge pull request #352 from apache/feature/rest
    
    Rest protocol

 common/constant/default.go                         |   2 +
 common/constant/key.go                             |  43 ++-
 common/constant/time.go                            |   2 +
 common/extension/auth.go                           |   6 +
 common/extension/config_reader.go                  |  50 ++++
 .../{constant/time.go => extension/rest_client.go} |  17 +-
 .../{constant/time.go => extension/rest_server.go} |  17 +-
 common/yaml/testdata/config.yml                    |   7 +
 .../yaml/yaml.go                                   |  43 +--
 common/yaml/yaml_test.go                           |  58 ++++
 config/base_config.go                              |  29 +-
 config/base_config_test.go                         |  11 -
 config/condition_router_config.go                  |   3 +-
 config/config_loader.go                            |  30 ++
 config/consumer_config.go                          |  14 +-
 config/interfaces/config_reader.go                 |   9 +
 config/provider_config.go                          |  12 +-
 config_center/nacos/client.go                      |   2 +-
 config_center/nacos/facade.go                      |   9 +-
 go.mod                                             |   2 +
 go.sum                                             |   6 +
 protocol/rest/client/client_impl/resty_client.go   |  85 ++++++
 .../time.go => protocol/rest/client/rest_client.go |  25 +-
 protocol/rest/config/reader/rest_config_reader.go  | 158 +++++++++++
 .../rest/config/reader/rest_config_reader_test.go  |  50 ++++
 .../config/reader/testdata/consumer_config.yml     |  74 +++++
 .../config/reader/testdata/provider_config.yml     |  88 ++++++
 protocol/rest/config/rest_config.go                | 153 ++++++++++
 .../time.go => protocol/rest/rest_exporter.go      |  31 +-
 protocol/rest/rest_invoker.go                      | 109 ++++++++
 protocol/rest/rest_invoker_test.go                 | 196 +++++++++++++
 protocol/rest/rest_protocol.go                     | 156 +++++++++++
 protocol/rest/rest_protocol_test.go                | 186 ++++++++++++
 .../time.go => protocol/rest/server/rest_server.go |  15 +-
 .../rest/server/server_impl/go_restful_server.go   | 311 +++++++++++++++++++++
 registry/base_registry.go                          |  46 ++-
 36 files changed, 1935 insertions(+), 120 deletions(-)