Documentation ¶
Index ¶
- Variables
- type AggregatedRecord
- func (*AggregatedRecord) Descriptor() ([]byte, []int)deprecated
- func (x *AggregatedRecord) GetExplicitHashKeyTable() []string
- func (x *AggregatedRecord) GetPartitionKeyTable() []string
- func (x *AggregatedRecord) GetRecords() []*Record
- func (*AggregatedRecord) ProtoMessage()
- func (x *AggregatedRecord) ProtoReflect() protoreflect.Message
- func (x *AggregatedRecord) Reset()
- func (x *AggregatedRecord) String() string
- type Aggregator
- type Config
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetData() []byte
- func (x *Record) GetExplicitHashKeyIndex() uint64
- func (x *Record) GetPartitionKeyIndex() uint64
- func (x *Record) GetTags() []*Tag
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var File_aggregate_aggregate_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AggregatedRecord ¶
type AggregatedRecord struct { PartitionKeyTable []string `protobuf:"bytes,1,rep,name=partition_key_table,json=partitionKeyTable" json:"partition_key_table,omitempty"` ExplicitHashKeyTable []string `protobuf:"bytes,2,rep,name=explicit_hash_key_table,json=explicitHashKeyTable" json:"explicit_hash_key_table,omitempty"` Records []*Record `protobuf:"bytes,3,rep,name=records" json:"records,omitempty"` // contains filtered or unexported fields }
func (*AggregatedRecord) Descriptor
deprecated
func (*AggregatedRecord) Descriptor() ([]byte, []int)
Deprecated: Use AggregatedRecord.ProtoReflect.Descriptor instead.
func (*AggregatedRecord) GetExplicitHashKeyTable ¶
func (x *AggregatedRecord) GetExplicitHashKeyTable() []string
func (*AggregatedRecord) GetPartitionKeyTable ¶
func (x *AggregatedRecord) GetPartitionKeyTable() []string
func (*AggregatedRecord) GetRecords ¶
func (x *AggregatedRecord) GetRecords() []*Record
func (*AggregatedRecord) ProtoMessage ¶
func (*AggregatedRecord) ProtoMessage()
func (*AggregatedRecord) ProtoReflect ¶
func (x *AggregatedRecord) ProtoReflect() protoreflect.Message
func (*AggregatedRecord) Reset ¶
func (x *AggregatedRecord) Reset()
func (*AggregatedRecord) String ¶
func (x *AggregatedRecord) String() string
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
Aggregator kinesis aggregator
func NewAggregator ¶
func NewAggregator(stringGen *util.RandomStringGenerator, cfg *Config) *Aggregator
NewAggregator create a new aggregator
func (*Aggregator) AddRecord ¶
func (a *Aggregator) AddRecord(partitionKey string, hasPartitionKey bool, data []byte) (entry *kinesis.PutRecordsRequestEntry, err error)
AddRecord to the aggregate buffer. Will return a kinesis PutRecordsRequest once buffer is full, or if the data exceeds the aggregate limit.
func (*Aggregator) AggregateRecords ¶
func (a *Aggregator) AggregateRecords() (entry *kinesis.PutRecordsRequestEntry, err error)
AggregateRecords will flush proto-buffered records into a put request
func (*Aggregator) GetRecordCount ¶
func (a *Aggregator) GetRecordCount() int
GetRecordCount gets number of buffered records
type Record ¶
type Record struct { PartitionKeyIndex *uint64 `protobuf:"varint,1,req,name=partition_key_index,json=partitionKeyIndex" json:"partition_key_index,omitempty"` ExplicitHashKeyIndex *uint64 `protobuf:"varint,2,opt,name=explicit_hash_key_index,json=explicitHashKeyIndex" json:"explicit_hash_key_index,omitempty"` Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"` Tags []*Tag `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*Record) Descriptor
deprecated
func (*Record) GetExplicitHashKeyIndex ¶
func (*Record) GetPartitionKeyIndex ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type Tag ¶
type Tag struct { Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Tag) Descriptor
deprecated
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.