https://github.com/qa-dev/universe
Event bus
https://github.com/qa-dev/universe
Last synced: about 1 year ago
JSON representation
Event bus
- Host: GitHub
- URL: https://github.com/qa-dev/universe
- Owner: qa-dev
- License: mit
- Created: 2017-03-06T16:40:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-15T12:03:26.000Z (about 9 years ago)
- Last Synced: 2025-02-01T22:26:04.162Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1.31 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Universe
[](https://travis-ci.org/qa-dev/universe)
[](https://coveralls.io/github/qa-dev/Universe?branch=master)
[](https://goreportcard.com/report/github.com/qa-dev/universe)
## Requirements
- MongoDB
- RabbitMQ
## Setting up
- Run `make build`
- Edit `dist/config.json`
- Just run `dist/universe`
## How to use
There is only 3 endpoints and all of them are POST
1) Send event
2) Subscribe to event
3) Unsubscribe from event
Let's explain all 3 endpoints:
### *Send event*
**Path**: `/e/`
Where *event_name* is any url-allowed sequence of chars.
**Body**: put any information about event in request body.
### *Subscribe*
**Path**: `/subscribe/`
Today only log and webhook (in url named as `web`) plugins are available.
**Body**: example for webhook plugin
```
{
"event_name": "myservice.job.done",
"url": "http://example.com/webhook"
}
```
### *Unsubscribe*
**Path**: `/unsubscribe/`
**Body**: example for webhook plugin
```
{
"event_name": "myservice.job.done",
"url": "http://example.com/webhook"
}
```
# License
[MIT](LICENSE)