diff --git a/README.md b/README.md index de3c6a7..bddb8f8 100644 --- a/README.md +++ b/README.md @@ -343,7 +343,7 @@ func main() { # Examples -There are example Produder and Consumer code in `/cmd` directory. These should help give end-to-end examples of setting up consumers with different checkpoint strategies. +There are examples of producer and comsumer in the `/examples` directory. These should help give end-to-end examples of setting up consumers with different checkpoint strategies. The examples run locally against [Kinesis Lite](https://github.com/mhart/kinesalite). @@ -351,11 +351,11 @@ The examples run locally against [Kinesis Lite](https://github.com/mhart/kinesal Produce data to the stream: - $ cat cmd/producer/users.txt | go run cmd/producer/main.go --stream myStream + $ cat examples/producer/users.txt | go run examples/producer/main.go --stream myStream Consume data from the stream: - $ go run cmd/consumer/main.go --stream myStream + $ go run examples/consumer/main.go --stream myStream ## Contributing diff --git a/cmd/consumer-dynamo/README.md b/examples/consumer-dynamo/README.md similarity index 100% rename from cmd/consumer-dynamo/README.md rename to examples/consumer-dynamo/README.md diff --git a/cmd/consumer-dynamo/main.go b/examples/consumer-dynamo/main.go similarity index 100% rename from cmd/consumer-dynamo/main.go rename to examples/consumer-dynamo/main.go diff --git a/cmd/consumer-mysql/README.md b/examples/consumer-mysql/README.md similarity index 100% rename from cmd/consumer-mysql/README.md rename to examples/consumer-mysql/README.md diff --git a/cmd/consumer-mysql/main.go b/examples/consumer-mysql/main.go similarity index 100% rename from cmd/consumer-mysql/main.go rename to examples/consumer-mysql/main.go diff --git a/cmd/consumer-postgres/README.md b/examples/consumer-postgres/README.md similarity index 100% rename from cmd/consumer-postgres/README.md rename to examples/consumer-postgres/README.md diff --git a/cmd/consumer-postgres/main.go b/examples/consumer-postgres/main.go similarity index 100% rename from cmd/consumer-postgres/main.go rename to examples/consumer-postgres/main.go diff --git a/cmd/consumer-redis/README.md b/examples/consumer-redis/README.md similarity index 100% rename from cmd/consumer-redis/README.md rename to examples/consumer-redis/README.md diff --git a/cmd/consumer-redis/main.go b/examples/consumer-redis/main.go similarity index 100% rename from cmd/consumer-redis/main.go rename to examples/consumer-redis/main.go diff --git a/cmd/consumer/main.go b/examples/consumer/main.go similarity index 100% rename from cmd/consumer/main.go rename to examples/consumer/main.go diff --git a/cmd/producer/README.md b/examples/producer/README.md similarity index 100% rename from cmd/producer/README.md rename to examples/producer/README.md diff --git a/cmd/producer/main.go b/examples/producer/main.go similarity index 100% rename from cmd/producer/main.go rename to examples/producer/main.go diff --git a/cmd/producer/users.txt b/examples/producer/users.txt similarity index 100% rename from cmd/producer/users.txt rename to examples/producer/users.txt