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:06 UTC
[dubbo-go] 01/01: Merge pull request #352 from apache/feature/rest
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(-)