commit | a80c4d2bcffd36f4e44a015c23f753f889ef1090 | [log] [tgz] |
---|---|---|
author | benoitc <bchesneau@gmail.com> | Mon Mar 04 13:45:15 2013 +0100 |
committer | benoitc <bchesneau@gmail.com> | Mon Mar 04 13:45:34 2013 +0100 |
tree | 5573e881edd24f2d8af8e70b22605debd8936c59 | |
parent | 3d7b63389e47c6e61842d6ae361102e6a37d5d1d [diff] |
license is apache 2. fix #2
couch_dbupdates
is a simple couchdb modules to receive databases events in couchdb node.
It's actually supported by all the refuge projects:
To get db events, do a GET to /_db_updates
.
You can pass an optional query parameters:
feed
The feed can be longpoll
(default) for longpolling, eventsource
for event stream or continuous
for continuous feed.timeout
: timeout before the longpolling connection close or when the heartbeat is emitted.heartbeat
: true, or false. an empty line is emittend when the timeout occurs to maintain the connection active.$ curl http://127.0.0.1:5984/_db_updates?feed=continuous {"type":"created","db_name":"testdb"} {"type":"updated","db_name":"testdb"} {"type":"deleted","db_name":"testdb"}