* Create base Interfaces for Pipeline * Add first base implementations for Pipeline * Add initial test for core functionality
10 lines
388 B
Go
10 lines
388 B
Go
package connector
|
|
|
|
// Used by Pipeline.ProcessShard when they want to checkpoint their progress.
|
|
// The Kinesis Connector Library will pass an object implementing this interface to ProcessShard,
|
|
// so they can checkpoint their progress.
|
|
type Checkpoint interface {
|
|
CheckpointExists(shardID string) bool
|
|
SequenceNumber() string
|
|
SetCheckpoint(shardID string, sequenceNumber string)
|
|
}
|