kinesis-consumer/checkpoint/checkpoint.go
Harlow Ward 6ee965ec0a
Add DDB as consumer checkpoint option (#37)
* Simplify the checkpoint interface
* Add DDB backend for checkpoint persistence

Implements: https://github.com/harlow/kinesis-consumer/issues/26
2017-11-20 09:37:30 -08:00

8 lines
247 B
Go

package checkpoint
// Checkpoint interface used to allow swappable backends for checkpoining
// consumer progress in the stream.
type Checkpoint interface {
Get(shardID string) (string, error)
Set(shardID string, sequenceNumber string) error
}