convert

package
v0.3.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(ctx context.Context, msgs chan []*pulsarutils.ConsumerMessage, bufferSize int, converter *MessageRowConverter) chan *model.BatchUpdate

Convert takes a channel of pulsar message batches and outputs a channel of batched events that we store in Redis

Types

type MessageRowConverter

type MessageRowConverter struct {
	Compressor          compress.Compressor
	MaxMessageBatchSize int
}

MessageRowConverter converts raw pulsar messages into events that we can store in Redis

func (*MessageRowConverter) ConvertBatch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL