event-srv

module
v0.0.0-...-690d12d Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: MIT

README

Event Service

  • An event log as a service
  • Build with Go, Elastic Search and Kafka
  • A minimal docker container
  • Automatically pushes it to dockerhub if tests pass

Setup

Env vars

export PORT=3000
export DATASTORE_URL=http://@docker:9200
export BROKER_URL=localhost:9093

Installation

mkdir -p $GOPATH/src/github.com/rafaeljesus
cd $GOPATH/src/github.com/rafaeljesus
git clone https://github.com/rafaeljesus/event-srv.git
cd event-srv
make all

Running server

./dist/event-srv
# => Starting Event Service at port 3000

Create a Event through HTTP

  • Request
curl -X POST -H "Content-Type: application/json" \
-d '{"name": "order_created", "status": "success", "payload": {}}' \
localhost:3000/events
  • Response
"OK"

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Badges

CircleCI


GitHub @rafaeljesus  ·  Twitter @rafaeljesus

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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