Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaProducer ¶
type KafkaProducer struct {
Producer sarama.SyncProducer
}
KafkaProducer hold kafka producer session
func (*KafkaProducer) SendMessage ¶
func (p *KafkaProducer) SendMessage(topic, msg string) error
SendMessage function to send message into kafka
Click to show internal directories.
Click to hide internal directories.