Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaProducer ¶
type SaramaProducer ¶
type SaramaProducer struct {
// contains filtered or unexported fields
}
SaramaProducer is a wrapper around sarama.SyncProducer that implements the KafkaProducer interface.
func NewSaramaProducer ¶
func NewSaramaProducer(producer sarama.SyncProducer) *SaramaProducer
NewSaramaProducer creates a new SaramaProducer.
func (*SaramaProducer) SendMessage ¶
func (p *SaramaProducer) SendMessage(topic string, message []byte) error
SendMessage sends a message to a specific Kafka topic.
Click to show internal directories.
Click to hide internal directories.