messages

package
v0.0.0-...-4b406e8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMessages

func MakeMessages(topicName string, messageCount, messageValueLength int) ([]*sarama.ProducerMessage, error)

func NewWorkerPool

func NewWorkerPool(log *logrus.Entry, workerCount int, producer sarama.SyncProducer) (*sync.WaitGroup, chan MessagesAndBatchID)

Types

type MessagesAndBatchID

type MessagesAndBatchID struct {
	Messages []*sarama.ProducerMessage
	ID       int
}

Jump to

Keyboard shortcuts

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