q2go

command module
v0.0.0-...-714e633 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

README

q2go

minimalistic queue server with REST access written in Golang

create a queue with name "queue123"
curl -d "qname=queue123" -X POST "http://localhost:8080/queue" 
create some message in the above created queue
curl -d "message=hello this is some more text" -X POST "http://localhost:8080/queue/queue123/message"
read the first message (fifo) from the above create queue
curl http://localhost:8080/queue/queue123/message
delete a queue
curl -X DELETE "http://localhost:8080/queue/queue123"
publish 100 messages (wget as alternative)
for ((i=1;i<=100;i++)) ; do curl -d "message=hello this is some more text $i" -X POST "http://localhost:8080/queue/queue123/message" ; done
for ((i=1;i<=100;i++)) ; do wget http://localhost:8080/queue/queue123/message --post-data="message=hello this is some more text $i" ; done
read 100 messages
for ((i=1;i<=100;i++)); do curl http://localhost:8080/queue/queue123/message ; done

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL