kafka

package
v0.0.0-...-39662a5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKafkaTopic

func CreateKafkaTopic(brokers, topic string) error

Types

type KafkaConsumer

type KafkaConsumer interface {
	Consume(ctx context.Context, topic string, groupID string, handler func(kafka.Message) error) error
}

func NewKafkaConsumer

func NewKafkaConsumer(brokers []string, groupID string, groupTopics []string) KafkaConsumer

type KafkaProducer

type KafkaProducer interface {
	Produce(ctx context.Context, topic string, message kafka.Message) error
}

func NewKafkaProducer

func NewKafkaProducer(brokers []string) KafkaProducer

type KafkaTopic

type KafkaTopic interface {
	CreateKafkaTopic(brokers, topic string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳