kafka

package
v0.0.0-...-61eb987 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 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 Checkpointer

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

Checkpointer is a kafka implementation of the wal checkpointer. It commits the message offsets to kafka.

func New

func New(ctx context.Context, cfg Config, committer kafkaCommitter, opts ...Option) (*Checkpointer, error)

New returns a kafka checkpointer that commits the message offsets to kafka by partition/topic on demand.

func (*Checkpointer) Close

func (c *Checkpointer) Close() error

func (*Checkpointer) CommitOffsets

func (c *Checkpointer) CommitOffsets(ctx context.Context, positions []wal.CommitPosition) error

type Config

type Config struct {
	CommitBackoff backoff.Config
}

type Option

type Option func(c *Checkpointer)

func WithLogger

func WithLogger(l loglib.Logger) Option

Jump to

Keyboard shortcuts

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