kafka_producer

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 0

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 生产消息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL