Skip to content

cyx/busl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 227 commits ahead of catsby:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
sse
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


busl Build Status

busl - the bustle part of hustle.

a simple pubsub service that runs on Heroku.

usage

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.

setup

to setup to test and run busl, setup godep and then:

$ godep go install
$ cp .sample.env .env
$ export $(cat .env)

test

to run tests:

$ godep go test ./...

run

to run the server:

$ godep go run main.go

deploy

Deploy to Heroku

docker setup

# Start
$ docker-compose start

# Grab the host / port combination chosen by docker
$ export URL=$(docker-compose port web 5000)

# Check health status
$ curl $URL/health
OK

About

a simple pubsub service that runs on Heroku

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.8%
  • Makefile 0.2%