Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperationCreate = "CREATE" OperationUpdate = "UPDATE" OperationDelete = "DELETE" )
View Source
const DefaultMessageBufferSize = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraMaskInfo ¶
type MessageAsyncBatch ¶
type MessageAsyncBatch struct {
// contains filtered or unexported fields
}
func NewMessageAsyncBatch ¶
func (*MessageAsyncBatch) Flush ¶
func (b *MessageAsyncBatch) Flush(ctx context.Context)
type MessageBatchSyncProcessor ¶
type MessageBatchSyncProcessor interface {
Process(session sarama.ConsumerGroupSession, msgBuf []*Message) error
}
type MessageSyncBatch ¶
type MessageSyncBatch struct {
// contains filtered or unexported fields
}
func NewMessageSyncBatch ¶
func NewMessageSyncBatch( topic string, partition int32, maxSize int, maxBufSize int, maxBytesPerBatch *int64, processor MessageBatchSyncProcessor, ) *MessageSyncBatch
func (*MessageSyncBatch) Insert ¶
func (b *MessageSyncBatch) Insert(msg *Message)
func (*MessageSyncBatch) Process ¶
func (b *MessageSyncBatch) Process(session sarama.ConsumerGroupSession) error
process calls the processor to process the batch
func (*MessageSyncBatch) Size ¶
func (b *MessageSyncBatch) Size() int
func (*MessageSyncBatch) SizeHit ¶
func (b *MessageSyncBatch) SizeHit(batchBytes int64) bool
type Serializer ¶
type Serializer interface {
Deserialize(message *sarama.ConsumerMessage) (*Message, error)
}
func NewSerializer ¶
func NewSerializer(schemaRegistryURL string) Serializer
Click to show internal directories.
Click to hide internal directories.