Documentation
¶
Index ¶
- Variables
- func Lag(consumer *kafka.Consumer) int
- func NewConsumer(brokers string, poll bool) *kafka.Consumer
- func NewProducer(brokers string) *kafka.Producer
- func Prepare(producer *kafka.Producer, message []byte, numMessages int) func()
- func PrepareChannel(consumer *kafka.Consumer, numMessages int) func()
- func PreparePoll(consumer *kafka.Consumer, numMessages int) func()
Constants ¶
This section is empty.
Variables ¶
var ( // Channel to detect when the client is do with the process. Done = make(chan bool) )
Functions ¶
func Lag ¶
Lag returns the LAG of certain consumer. If the consumer hasn't consumed any message and the consumer group id is new, the LAG would identify the number of messages available in that topic.
func NewConsumer ¶
NewConsumer returns a new confluent consumer.
func NewProducer ¶
NewProducer returns a new confluent producer.
func Prepare ¶
Prepare returns a function that can be used during the benchmark as it only performs the sending of messages, checking that the sending was successful.
func PrepareChannel ¶
PrepareChannel returns a function that can be used during the benchmark as it only performs the consuming of messages. It uses the deprecated channel method.
func PreparePoll ¶
PreparePoll returns a function that can be used during the benchmark as it only performs the consuming of messages. It uses the poll/function method.
Types ¶
This section is empty.