15 lines
341 B
Go
15 lines
341 B
Go
|
|
package consumer
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
|
||
|
|
"github.com/aws/aws-sdk-go/service/kinesis"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Group interface used to manage which shard to process
|
||
|
|
type Group interface {
|
||
|
|
Start(ctx context.Context) chan *kinesis.Shard
|
||
|
|
GetCheckpoint(streamName, shardID string) (string, error)
|
||
|
|
SetCheckpoint(streamName, shardID, sequenceNumber string) error
|
||
|
|
}
|