Documentation
¶
Overview ¶
HTTP server mode: standalone delay queue service
Usage:
go run . &
# Add a task (fires after 5 seconds)
curl -X POST http://localhost:9280/add \
-d '{"topic":"notify","id":"msg-1","body":"hello","delay_ms":5000,"ttr_ms":30000}'
# Pop a ready task (long-poll, waits up to 10 seconds)
curl -X POST http://localhost:9280/pop \
-d '{"topic":"notify","timeout_ms":10000}'
# Finish the task
curl -X POST http://localhost:9280/finish \
-d '{"topic":"notify","id":"msg-1"}'
# Check stats
curl http://localhost:9280/stats
Click to show internal directories.
Click to hide internal directories.