Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c8a08d1f33
Fetching contributors…

Cannot retrieve contributors at this time

file 35 lines (30 sloc) 0.807 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
JSON protocol
For operations using the JSON protocol, a post mus be issued to http://server/queue .
There is a simple html form when you issue a GET /queue.
This is a simple protocol for queue manipulation, based on my first prototype at http://jsonqueue.appspot.com.


Queue add example:
{
"cmd":"add",
"queue":"test",
"value":"oi"
}
- Adds an element to a given queue. If the queue doesn't exists, create it.

Queue get example:
{
"cmd":"get",
"queue":"test"
}
- Just get the next element from the queue. It increments a reference counter.

Queue del example:
{
"cmd":"del",
"queue":"test",
"key":"test:31"
}
- Deletes an element from the queue. Use the key which comes with get

Queue take example:
{
"cmd":"take",
"queue":"test"
}
- Get and Delete the latest element from the queue.
Something went wrong with that request. Please try again.