You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by fl...@apache.org on 2020/02/05 03:20:14 UTC
[dubbo-go] branch feature/rest updated (e899345 -> d93a2a3)
This is an automated email from the ASF dual-hosted git repository.
flycash pushed a change to branch feature/rest
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.
from e899345 Merge pull request #347 from apache/develop
new 64b9439 init rest protocol
new 5cbba12 rest configs and invoker
new 2d3a6f7 fix
new 69020c0 fixed
new b3fabce Merge branch 'develop' into rest_protocol
new 547372f init rest exporter and modify rest invoker
new 5120254 header params
new d5fccd6 resty add header params
new c31030f fix
new cbc59d3 go restful server and some unit tests
new f1908a0 modify
new 567acb1 modify test
new 55655d3 fix bug
new 415d590 ptr zk.lock
new cb9cc37 fix bug
new d654f3a Merge pull request #346 from pantianying/zk_develop
new 9acc7aa Merge branch 'develop' into rest_protocol
new 6a6717f Merge branch 'feature/rest' into rest_protocol
new f48a644 fix
new eb1d850 fix tests
new 756f87f use "default" constant and remove default timeout options
new 88300f4 add licenses
new d9c61c4 fmt imports
new 9538a34 fix config initializer
new f51ae5d add some unit tests
new 8d1dc02 add testdata about rest config file
new a957054 add licenses
new d93a2a3 Merge pull request #329 from Patrick0308/rest_protocol
The 1369 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/extension/rest_client.go | 20 ++
common/extension/rest_config_reader.go | 24 ++
common/extension/rest_server.go | 20 ++
config/consumer_config.go | 1 +
config/provider_config.go | 1 +
go.mod | 3 +
go.sum | 23 +-
protocol/rest/rest_client/resty_client.go | 82 +++++++
protocol/rest/rest_config_initializer.go | 156 +++++++++++++
.../rest/rest_config_initializer_test.go | 22 +-
.../rest_config_reader/default_config_reader.go | 108 +++++++++
.../default_config_reader_test.go | 22 +-
.../testdata/consumer_config.yml | 197 +++++++++--------
.../testdata/provider_config.yml | 200 ++++++++---------
.../dubbo_exporter.go => rest/rest_exporter.go} | 22 +-
.../rest/rest_interface/rest_client.go | 31 +--
protocol/rest/rest_interface/rest_config.go | 112 ++++++++++
.../rest/rest_interface/rest_config_reader.go | 12 +-
.../rest/rest_interface/rest_server.go | 12 +-
protocol/rest/rest_invoker.go | 109 +++++++++
protocol/rest/rest_invoker_test.go | 123 +++++++++++
protocol/rest/rest_protocol.go | 140 ++++++++++++
protocol/rest/rest_protocol_test.go | 159 +++++++++++++
protocol/rest/rest_server/go_restful_server.go | 246 +++++++++++++++++++++
remoting/zookeeper/client.go | 83 ++++---
remoting/zookeeper/listener.go | 7 +-
27 files changed, 1655 insertions(+), 282 deletions(-)
create mode 100644 common/extension/rest_client.go
create mode 100644 common/extension/rest_config_reader.go
create mode 100644 common/extension/rest_server.go
create mode 100644 protocol/rest/rest_client/resty_client.go
create mode 100644 protocol/rest/rest_config_initializer.go
copy config_center/parser/configuration_parser_test.go => protocol/rest/rest_config_initializer_test.go (56%)
create mode 100644 protocol/rest/rest_config_reader/default_config_reader.go
copy config_center/parser/configuration_parser_test.go => protocol/rest/rest_config_reader/default_config_reader_test.go (59%)
copy {config => protocol/rest/rest_config_reader}/testdata/consumer_config.yml (95%)
copy {config => protocol/rest/rest_config_reader}/testdata/provider_config.yml (96%)
copy protocol/{dubbo/dubbo_exporter.go => rest/rest_exporter.go} (70%)
copy config/mock_rpcservice.go => protocol/rest/rest_interface/rest_client.go (65%)
create mode 100644 protocol/rest/rest_interface/rest_config.go
copy cluster/cluster.go => protocol/rest/rest_interface/rest_config_reader.go (85%)
copy cluster/directory.go => protocol/rest/rest_interface/rest_server.go (80%)
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
create mode 100644 protocol/rest/rest_server/go_restful_server.go