kafka

package
v0.0.0-...-f7b9b20 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

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
}

func NewKafkaConsumer

func NewKafkaConsumer() *KafkaConsumer

func (*KafkaConsumer) Consume

func (k *KafkaConsumer) Consume(
	ctx context.Context,
	msg *sarama.ConsumerMessage,
	consumerGroup string,
	consumeFunc func(context.Context) error,
)

type KafkaProducer

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

func NewKafkaProducer

func NewKafkaProducer(
	producer sarama.AsyncProducer,
) *KafkaProducer

func (*KafkaProducer) Publish

func (k *KafkaProducer) Publish(
	ctx context.Context,
	msg *sarama.ProducerMessage,
	errType *string,
)

Jump to

Keyboard shortcuts

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