Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer struct wraps a sarama.AsyncProducer and handles Kafka message production.
func NewProducer ¶
NewProducer creates a new Producer with the given Kafka brokers.
func (*Producer) GetProducedMessages ¶
GetProducedMessages returns the count of produced and errored messages.
func (*Producer) SendMessage ¶
func (p *Producer) SendMessage(message *shared.KafkaMessage)
SendMessage sends a KafkaMessage to the producer.
Click to show internal directories.
Click to hide internal directories.