Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaProducer ¶
type KafkaProducer struct { shSarama.SyncProducer sync.RWMutex }
func NewKafkaProducer ¶
func NewKafkaProducer(opt saramaConf.KafkaOption) (*KafkaProducer, error)
func (*KafkaProducer) Close ¶
func (p *KafkaProducer) Close() error
func (*KafkaProducer) Send ¶
func (p *KafkaProducer) Send(topic, content string) error
Click to show internal directories.
Click to hide internal directories.