kafka

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Reader)

func WithLogger

func WithLogger(logger loglib.Logger) Option

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader is a kafka reader that listens to wal events.

func NewWALReader added in v0.2.0

func NewWALReader(kafkaReader kafkaReader, processRecord payloadProcessor, opts ...Option) (*Reader, error)

NewReader returns a kafka reader that listens to wal events and calls the processor on input.

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Listen

func (r *Reader) Listen(ctx context.Context) error

Jump to

Keyboard shortcuts

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