Skip to content

Commit

Permalink
clean up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Jan 24, 2017
1 parent 5a63de5 commit 3bf02b3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
13 changes: 0 additions & 13 deletions example/README.md

This file was deleted.

8 changes: 5 additions & 3 deletions quickstart.md → examples/cluster/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Quick start
# Jocko cluster example

This will start up a local three node cluster.
This will start a local three node cluster.

## Build

```bash
$ go get
$ go get github.com/travisjeffery/jocko
$ cd $GOPATH/src/github.com/travisjeffery/jocko/cmd/jocko
$ go build
```
Expand All @@ -21,6 +21,7 @@ $ ./jocko --debug \
--raftport=8001 \
--serfport=7946 \
--id=1

$ ./jocko --debug \
--logdir="/tmp/jocko2" \
--tcpaddr=127.0.0.1:9002 \
Expand All @@ -30,6 +31,7 @@ $ ./jocko --debug \
--serfport=7947 \
--serfmembers=127.0.0.1:7946 \
--id=2

$ ./jocko --debug \
--logdir="/tmp/jocko3" \
--tcpaddr=127.0.0.1:9003 \
Expand Down
18 changes: 18 additions & 0 deletions examples/sarama/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Jocko used with a Sarama client example

This example shows Sarama producing and consuming with Jocko.

## Setup

```
$ go get github.com/travisjeffery/jocko
$ cd $GOPATH/src/github.com/travisjeffery/jocko/examples/sarama
```

## Run

```
$ go run main.go
```


File renamed without changes.

0 comments on commit 3bf02b3

Please sign in to comment.