kinesis-consumer/examples/consumer/cp-redis
Harlow Ward 76158d24ab
Introduce ScanFunc signature and remove ScanStatus (#77)
Major changes:

```go
type ScanFunc func(r *Record) error
```

* Simplify the callback func signature by removing `ScanStatus` 
* Leverage context for cancellation 
* Add custom error `SkipCheckpoint` for special cases when we don't want to checkpoint

Minor changes:

* Use kinesis package constants for shard iterator types
* Move optional config to new file

See conversation on #75 for more details
2019-04-07 16:29:12 -07:00
..
main.go Introduce ScanFunc signature and remove ScanStatus (#77) 2019-04-07 16:29:12 -07:00
README.md Remove the client wrapper (#58) 2018-07-28 22:53:33 -07:00

Consumer

Read records from the Kinesis stream

Environment Variables

Export the required environment vars for connecting to the Kinesis stream and Redis for checkpoint:

export AWS_ACCESS_KEY=
export AWS_REGION=
export AWS_SECRET_KEY=
export REDIS_URL=

Run the consumer

$ go run main.go --app appName --stream streamName