storage

package
v0.0.0-...-f1d435a Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaConsumer

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

KafkaConsumer represents a Kafka consumer

func NewKafkaConsumer

func NewKafkaConsumer(brokers []string, topic, groupID string) *KafkaConsumer

NewKafkaConsumer creates a new Kafka consumer

func (*KafkaConsumer) Close

func (kc *KafkaConsumer) Close() error

Close closes the Kafka consumer

func (*KafkaConsumer) Consume

func (kc *KafkaConsumer) Consume(handler func(key, value []byte))

Consume reads messages from the Kafka topic

Jump to

Keyboard shortcuts

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