Documentation
¶
Index ¶
Constants ¶
View Source
const (
Mb = 1024 * 1024
)
Variables ¶
View Source
var DefaultPartitionKey = func(context context.Context, _ exporter.FeatureEvent) string {
context.Value("feature")
return "default"
}
Functions ¶
This section is empty.
Types ¶
type DefaultKinesisSender ¶
func (*DefaultKinesisSender) SendMessages ¶
func (k *DefaultKinesisSender) SendMessages( ctx context.Context, msgs *kinesis.PutRecordsInput, ) (*kinesis.PutRecordsOutput, error)
type Exporter ¶
type Exporter struct { // AwsConfig is the AWS SDK configuration object we will use to // upload your exported data files. AwsConfig *aws.Config // Format is the output format you want in your exported file. // Available format are JSON, CSV and Parquet. // Default: JSON Format string // kinesis.Options is a list of functional options to configure the Kinesis client. // Provide additional functional options to further configure the behavior of the client, // such as changing the client's endpoint or adding custom middleware behavior. // For more information about the options, please check: // https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/kinesis#Options KinesisOptions []func(*kinesis.Options) Settings *Settings // contains filtered or unexported fields }
type MessageSender ¶
type MessageSender interface {
SendMessages(ctx context.Context, msgs *kinesis.PutRecordsInput) (*kinesis.PutRecordsOutput, error)
}
type Option ¶
func WithExplicitHashKey ¶
func WithPartitionKey ¶
func WithPartitionKey(partitionKey PartitionKeyFunc) Option
func WithStreamArn ¶
func WithStreamName ¶
type PartitionKeyFunc ¶
type PartitionKeyFunc = func(context.Context, exporter.FeatureEvent) string
type Settings ¶
type Settings struct { StreamName *string StreamArn *string PartitionKey PartitionKeyFunc ExplicitHashKey *string }
func NewSettings ¶
Click to show internal directories.
Click to hide internal directories.