* Simplify the checkpoint interface * Add DDB backend for checkpoint persistence Implements: https://github.com/harlow/kinesis-consumer/issues/26
8 lines
247 B
Go
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
|
|
}
|