kafka

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncConsumeMessages

func AsyncConsumeMessages(consumer async.Consumer, expectedMessageCount int) ([]string, error)

AsyncConsumeMessages from an async consumer.

func CreateProducerMessage

func CreateProducerMessage(topic, message string) *sarama.ProducerMessage

CreateProducerMessage for a topic.

func CreateTopics

func CreateTopics(broker string, topics ...string) error

CreateTopics helper function.

func NewProducer

func NewProducer(broker string) (sarama.SyncProducer, error)

NewProducer helper function.

func SendMessages

func SendMessages(broker string, messages ...*sarama.ProducerMessage) error

SendMessages to the broker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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