kafka

package
v1.2.14-prerelease02 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaClient

func NewKafkaClient(
	kc *config.KafkaConfig,
	metricsClient metrics.Client,
	logger log.Logger,
	_ tally.Scope,
	checkApp bool,
) messaging.Client

NewKafkaClient is used to create an instance of KafkaClient

func NewKafkaConsumer added in v1.2.8

func NewKafkaConsumer(
	dlqProducer messaging.Producer,
	brokers []string,
	topic string,
	consumerName string,
	saramaConfig *sarama.Config,
	metricsClient metrics.Client,
	logger log.Logger,
) (messaging.Consumer, error)

func NewKafkaProducer

func NewKafkaProducer(topic string, producer sarama.SyncProducer, logger log.Logger) messaging.Producer

NewKafkaProducer is used to create the Kafka based producer implementation

Types

This section is empty.

Jump to

Keyboard shortcuts

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