kinesis-consumer/examples/consumer/cp-postgres
Harlow Ward fb98fbe244
Remove the client wrapper (#58)
Having an additional Client has added some confusion (https://github.com/harlow/kinesis-consumer/issues/45) on how to provide a
custom kinesis client. Allowing `WithClient` to accept a Kinesis client
it cleans up the interface.

Major changes:

* Remove the Client wrapper; prefer using kinesis client directly
* Change `ScanError` to `ScanStatus` as the return value isn't necessarily an error

Note: these are breaking changes, if you need last stable release please see here: https://github.com/harlow/kinesis-consumer/releases/tag/v0.2.0
2018-07-28 22:53:33 -07:00
..
main.go Remove the client wrapper (#58) 2018-07-28 22:53:33 -07:00
README.md Add postgres checkpoint implementation (#55) 2018-06-17 19:27:10 -07:00

Consumer with postgres checkpoint

Read records from the Kinesis stream using postgres as checkpoint

Environment Variables

Export the required environment vars for connecting to the Kinesis stream:

export AWS_ACCESS_KEY=
export AWS_REGION=
export AWS_SECRET_KEY=

Run the consumer

 go run main.go --app appName --stream streamName --table tableName --connection connectionString