kafka

package
v0.0.0-...-350df58 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 5 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 defines a Kafka ingester.

func NewIngester

func NewIngester(addr string, groupID string, topic string) (*Ingester, error)

NewIngester creates a new Kafka ingester.

func (*Ingester) Ingest

func (i *Ingester) Ingest(ctx context.Context) (chan model.RatingEvent, error)

Ingest starts ingestion from Kafka and returns a channel representing the data consumed from the topic.

Jump to

Keyboard shortcuts

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