kinesis-consumer/group.go

15 lines
349 B
Go
Raw Permalink Normal View History

package consumer
import (
"context"
"github.com/aws/aws-sdk-go/service/kinesis"
)
// Group interface used to manage which shard to process
type Group interface {
2019-06-03 00:46:28 +00:00
Start(ctx context.Context, shardc chan *kinesis.Shard)
GetCheckpoint(streamName, shardID string) (string, error)
SetCheckpoint(streamName, shardID, sequenceNumber string) error
}