commit | 3651f57ff5b22684072bb06a1eeb3a1e032895ce | [log] [tgz] |
---|---|---|
author | Mark4z <36187602+mark4z@users.noreply.github.com> | Sat Jul 23 18:32:38 2022 +0800 |
committer | GitHub <noreply@github.com> | Sat Jul 23 18:32:38 2022 +0800 |
tree | 57ccfef8cd389e70c2df545a4dba60df6096e2ba | |
parent | c5fb16b3e73df3c353a5a4360e1b99bf9575c3ad [diff] | |
parent | debc89e5aef250fd9be0258376e1fc23fd0caecb [diff] |
Merge pull request #16 from mark4z/main
samples for dubbo-go-pixiu
dubbogo/simple/nacos: http to dubbo with nacos registry
dubbogo/simple/triple: http to triple
dubbogo/simple/jaeger: pixiu with jaeger
dubbogo/simple/direct: http to dubbo with direct generic call
dubbogo/simple/body: http to dubbo with api_config.yaml
dubbogo/simple/resolve: http to dubbo with auto resolve protocol
grpc: grpc proxy
http/grpc: http to grpc transform
http/simple: http proxy
springcloud: http proxy with spring cloud registry
xds: pixiu with xds
cd dubbogo/simple
we can use start.sh to run samples quickly. for more info, execute command as below for more help
./start.sh [action] [project] ./start.sh help
we run body samples below step
prepare command will prepare dubbo-server and pixiu config file and start docker container needed
./start.sh prepare body
if prepare config file manually, notice:
./start.sh startServer body
./start.sh startPixiu body
if run pixiu manually in pixiu project, use command as below.
go run pixiu/*.go gateway start -c /[absolute-path]/dubbo-go-pixiu/samples/dubbogo/simple/body/pixiu/conf.yaml
use curl to send request
curl -X POST 'localhost:8881/api/v1/test-dubbo/user' -d '{"id":"0003","code":3,"name":"dubbogo","age":99}' --header 'Content-Type: application/json'
or just run unit test
./start.sh startTest body
./start.sh clean body