commit | 443685794ff21496255fc027c029525852f1d582 | [log] [tgz] |
---|---|---|
author | mazhihui <mazhihui@baimaohui.net> | Sun Sep 18 14:20:40 2022 +0800 |
committer | mazhihui <mazhihui@baimaohui.net> | Sun Sep 18 14:20:40 2022 +0800 |
tree | 57b01d7237184b7d1afd971d036e0ff7432ce830 | |
parent | 62fadaa7c9819990cbfdde143e4ff47b79d8effa [diff] | |
parent | 356e6be78476c858959274f57c3081bc4a396dae [diff] |
Merge branch 'xds-istio' of github.com:apache/dubbo-go-pixiu-samples into xds-istio
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