Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaProducer ¶
type KafkaProducer struct { SyncProducer sarama.SyncProducer Brokers []string }
KafkaProducer : Kafka Producer
func (*KafkaProducer) Close ¶
func (prod *KafkaProducer) Close() error
func (*KafkaProducer) New ¶
func (prod *KafkaProducer) New() sarama.SyncProducer
func (*KafkaProducer) Send ¶
func (prod *KafkaProducer) Send(topic string, message string)
Click to show internal directories.
Click to hide internal directories.