Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchWriter ¶
type BatchWriter struct {
// contains filtered or unexported fields
}
BatchWriter is a kafka writer that uses batches to send the data to the configured kafka topic.
func NewBatchWriter ¶
func (*BatchWriter) Close ¶
func (w *BatchWriter) Close() error
func (*BatchWriter) Name ¶
func (w *BatchWriter) Name() string
func (*BatchWriter) ProcessWALEvent ¶
ProcessWALEvent is called on every new message from the wal. It can be called concurrently.
type Option ¶
type Option func(*BatchWriter)
func WithCheckpoint ¶
func WithCheckpoint(c checkpointer.Checkpoint) Option
func WithInstrumentation ¶
func WithInstrumentation(i *otel.Instrumentation) Option
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.