2017-11-20 16:21:40 +00:00
|
|
|
package checkpoint
|
2014-07-25 06:03:41 +00:00
|
|
|
|
2017-11-20 17:37:30 +00:00
|
|
|
// Checkpoint interface used to allow swappable backends for checkpoining
|
|
|
|
|
// consumer progress in the stream.
|
2016-12-04 08:08:06 +00:00
|
|
|
type Checkpoint interface {
|
2017-11-20 17:37:30 +00:00
|
|
|
Get(shardID string) (string, error)
|
|
|
|
|
Set(shardID string, sequenceNumber string) error
|
2014-07-25 06:03:41 +00:00
|
|
|
}
|