Major changes: * Remove intermediate batching of kinesis records * Call the callback func with each record * Use functional options for config https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis Minor changes: * update README messaging about Kinesis -> Firehose functionality * remove unused buffer and emitter code
17 lines
300 B
Markdown
17 lines
300 B
Markdown
# Consumer
|
|
|
|
Read records from the Kinesis stream
|
|
|
|
### Environment Variables
|
|
|
|
Export the required environment vars for connecting to the Kinesis stream:
|
|
|
|
```
|
|
export AWS_ACCESS_KEY=
|
|
export AWS_REGION_NAME=
|
|
export AWS_SECRET_KEY=
|
|
```
|
|
|
|
### Run the consumer
|
|
|
|
$ go run main.go -a appName -s streamName
|