Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaAsyncProducer ¶
type KafkaAsyncProducer struct {
// contains filtered or unexported fields
}
KafkaAsyncProducer async producer
func NewAsyncProducer ¶
func NewAsyncProducer(config *KafkaConfig) (*KafkaAsyncProducer, error)
func (*KafkaAsyncProducer) Send ¶
func (p *KafkaAsyncProducer) Send()
type KafkaConfig ¶
type KafkaSyncProducer ¶
type KafkaSyncProducer struct {
// contains filtered or unexported fields
}
KafkaSyncProducer sync producer
func NewKafkaProducer ¶
func NewKafkaProducer(config *KafkaConfig) (*KafkaSyncProducer, error)
func (*KafkaSyncProducer) Send ¶
func (p *KafkaSyncProducer) Send(topic, msg string)
Click to show internal directories.
Click to hide internal directories.