producer

package
v0.0.0-...-a4f9db0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2016 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAsyncProducer

func CloseAsyncProducer(asyncProducer sarama.AsyncProducer) error

func CloseSyncProducer

func CloseSyncProducer(syncProducer sarama.SyncProducer) error

func CreateNewASyncProducer

func CreateNewASyncProducer(brokerList []string, kafkaConfiguration *sarama.Config) (sarama.AsyncProducer, error)

func CreateNewClientConfiguration

func CreateNewClientConfiguration(producerConfig *configuration.KafkaProducerConfig) (*sarama.Config, error)

func CreateNewProducerMessage

func CreateNewProducerMessage(configProducer configuration.KafkaProducerConfig, messageKey string, messageValue string) *sarama.ProducerMessage

func CreateNewSyncProducer

func CreateNewSyncProducer(brokerList []string, kafkaConfiguration *sarama.Config) (sarama.SyncProducer, error)

func SendMessageToASyncProducerTopic

func SendMessageToASyncProducerTopic(kProducer sarama.AsyncProducer, message *sarama.ProducerMessage, topicName string,
	wg *sync.WaitGroup, throttle chan int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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