busl - the bustle part of hustle.
a simple pubsub service that runs on Heroku.
create a stream:
$ export STREAM_ID=$(curl http://localhost:5001/streams -X POST)
# STREAM_ID=b7e586c8404b74e1805f5a9543bc516f
connect a consumer using the stream id:
$ curl http://localhost:5001/streams/$STREAM_ID
...
in a separate terminal, produce some data using the same stream id...
$ curl -H "Transfer-Encoding: chunked" http://localhost:5001/streams/$STREAM_ID -X POST
...and you see the busl.
to setup to test and run busl, setup godep and then:
$ godep go install
$ cp .sample.env .env
$ export $(cat .env)
to run tests:
$ godep go test ./...
to run the server:
$ godep go run main.go