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