Skip to content

qa-dev/universe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e7398d1 · Apr 15, 2017

History

93 Commits
Mar 16, 2017
Mar 24, 2017
Mar 23, 2017
Mar 20, 2017
Mar 23, 2017
Mar 22, 2017
Mar 23, 2017
Mar 17, 2017
Mar 16, 2017
Mar 8, 2017
Mar 16, 2017
Mar 6, 2017
Mar 9, 2017
Apr 15, 2017
Mar 21, 2017
Mar 23, 2017
Mar 9, 2017

Repository files navigation

Universe

Build Status Coverage Status Go Report Card

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/<event_name>
Where event_name is any url-allowed sequence of chars.

Body: put any information about event in request body.

Subscribe

Path: /subscribe/<plugin_name>
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/<plugin_name>

Body: example for webhook plugin

{
    "event_name": "myservice.job.done",
    "url": "http://example.com/webhook"
}

License

MIT