Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaProducer ¶
type KafkaProducer struct {
// contains filtered or unexported fields
}
func New ¶
func New(addressList string) *KafkaProducer
func (*KafkaProducer) Close ¶
func (kp *KafkaProducer) Close() error
func (*KafkaProducer) Init ¶
func (kp *KafkaProducer) Init() error
func (*KafkaProducer) SendMessage ¶
func (kp *KafkaProducer) SendMessage(content, topic string, partitionKey ...string) (partition int32, offset int64, err error)
SendMessage 生产消息
Click to show internal directories.
Click to hide internal directories.