Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vkuznet/cmsamqproxy
Proxy server for CMS AMQ brokers
https://github.com/vkuznet/cmsamqproxy
Last synced: 30 days ago
JSON representation
Proxy server for CMS AMQ brokers
- Host: GitHub
- URL: https://github.com/vkuznet/cmsamqproxy
- Owner: vkuznet
- License: mit
- Created: 2021-11-17T17:14:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T12:50:20.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T06:27:34.931Z (3 months ago)
- Language: Go
- Size: 34.2 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### CMSAMQProxy
Proxy server for CMS AMQ brokers. Build code using `make`.
To run, please create new config file like this one:
```
cat > config.json << EOF
{
"base": "/cmsamqproxy",
"port": 8300,
"logFile": "/tmp/cmsamqproxy.log",
"stompURI": "uri",
"stompLogin": "login",
"stompPassword": "password",
"endpoint": "endpoint",
"producer": "producer-name",
"verbose": 0
}
EOF
```
and run the code as following
```
cmsamqproxy -config config.json
```A client can send request to our server as following:
```
# get server status
curl -v http://localhost:8300/status# use JSON payload with list of records
curl -X POST -H "Content-type: application/json" -d '[{"foo":1},{"bla":1}]' http://localhost:8300/cmsamqproxy
[{"ids":["91c9446e007b46a6991e2494acc218f6","22344dae3d8b45c8859e4319dd2097d7"],"status":"ok"}]# use gzip encoding with JSON payload
curl -X POST -H "Content-type: application/json" -H "Content-Encoding: gzip" --data-binary @/tmp/data.json.gz http://localhost:8300/cmsamqproxy
[{"ids":["5707ac0208de4477b3698250ab1dd08d","f031345cf6f84a349c57c73842517f45"],"status":"ok"}]
```