Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gaol/test-eventbus-bridge
A vertx eventbus bridge that is used for testing
https://github.com/gaol/test-eventbus-bridge
Last synced: 19 days ago
JSON representation
A vertx eventbus bridge that is used for testing
- Host: GitHub
- URL: https://github.com/gaol/test-eventbus-bridge
- Owner: gaol
- License: apache-2.0
- Created: 2021-04-22T09:57:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-02T14:47:46.000Z (about 3 years ago)
- Last Synced: 2024-12-01T10:49:25.189Z (about 1 month ago)
- Language: Java
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-eventbus-bridge
A vertx eventbus bridge that is used for testingThis project is created acting as testing eventbus bridge for vertx eventbus clients.
One of the goal is to make it is easy to start, like using:
> java -jar target/test-ebridge-1.0.0-SNAPSHOT-fat.jar run -conf config.json
Each implementation of vertx eventbus clients can call the command above to start
the server for testing. Like in Python:```python
from subprocess import *
process = Popen(['java', '-jar' , "target/test-ebridge-1.0.0-SNAPSHOT-fat.jar", "--conf", "config.json", stderr=PIPE)
```* It contains some builtin handlers with predefined handlers:
Address | Handle
------------ | -------------
`echo` | Handler echos back any message sent to bridge. Body is `JsonObject`
`time` | Handler sends back current time in the server. Body is `JsonObject`, like: `{"time": "xxx"}`
`list` | Handler sends back information about list of registered handlers. Body is `JsonObject`: `{"list": [xxx]}`