From 3b3b252fa569b774ea3980347652c7df61fe9b31 Mon Sep 17 00:00:00 2001 From: Harlow Ward Date: Sat, 4 Dec 2021 10:42:17 -0800 Subject: [PATCH] Add all examples to example directory --- README.md | 6 +++--- {cmd => examples}/consumer-dynamo/README.md | 0 {cmd => examples}/consumer-dynamo/main.go | 0 {cmd => examples}/consumer-mysql/README.md | 0 {cmd => examples}/consumer-mysql/main.go | 0 {cmd => examples}/consumer-postgres/README.md | 0 {cmd => examples}/consumer-postgres/main.go | 0 {cmd => examples}/consumer-redis/README.md | 0 {cmd => examples}/consumer-redis/main.go | 0 {cmd => examples}/consumer/main.go | 0 {cmd => examples}/producer/README.md | 0 {cmd => examples}/producer/main.go | 0 {cmd => examples}/producer/users.txt | 0 13 files changed, 3 insertions(+), 3 deletions(-) rename {cmd => examples}/consumer-dynamo/README.md (100%) rename {cmd => examples}/consumer-dynamo/main.go (100%) rename {cmd => examples}/consumer-mysql/README.md (100%) rename {cmd => examples}/consumer-mysql/main.go (100%) rename {cmd => examples}/consumer-postgres/README.md (100%) rename {cmd => examples}/consumer-postgres/main.go (100%) rename {cmd => examples}/consumer-redis/README.md (100%) rename {cmd => examples}/consumer-redis/main.go (100%) rename {cmd => examples}/consumer/main.go (100%) rename {cmd => examples}/producer/README.md (100%) rename {cmd => examples}/producer/main.go (100%) rename {cmd => examples}/producer/users.txt (100%) 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