commit | de256c4b136897cb2eded48e4006540ee70d7a01 | [log] [tgz] |
---|---|---|
author | Enes <ahmedenesturan@gmail.com> | Thu Dec 01 14:19:39 2022 +0300 |
committer | GitHub <noreply@github.com> | Thu Dec 01 14:19:39 2022 +0300 |
tree | 4aad3d7f0d38cb818c5224cce3c0937cb97346ad | |
parent | 237e510218388b18b390fe168a8aad3ea44058e9 [diff] |
Update actions config 🚨 Node 12 has an end of life on April 30, 2022. The GitHub Actions workflow gives the following deprecation warning while running the action: > Node.js 12 actions are deprecated. For more information see: github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12. This PR updates the default runtime to [node16](https://github.blog/changelog/2021-12-10-github-actions-github-hosted-runners-now-run-node-js-16-by-default/) rather then node12. This is supported on all Actions Runners v2.285.0 or later.
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