darwin

package
v0.0.0-...-b365dc5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingester

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

Ingester implements the interface railreader.Ingester[kafka.Message].

func NewIngester

func NewIngester(ctx context.Context, log *slog.Logger, reader *kafka.Reader, dbpool *pgxpool.Pool, fs fs.ReadDirFS) (*Ingester, error)

func (*Ingester) Close

func (i *Ingester) Close() error

func (*Ingester) Fetch

func (i *Ingester) Fetch(ctx context.Context) (kafka.Message, error)

Fetch blocks until a message is available, or the provided context is cancelled.

func (*Ingester) ProcessAndCommit

func (i *Ingester) ProcessAndCommit(msg kafka.Message) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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