Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyStopped = fmt.Errorf("producer already stopped")
Functions ¶
This section is empty.
Types ¶
type KafkaProducer ¶
type KafkaProducer struct {
// contains filtered or unexported fields
}
func NewKafkaProducer ¶
func NewKafkaProducer(bootstrapServers, topic, clientID, acks string) (*KafkaProducer, error)
func (*KafkaProducer) Produce ¶
func (kp *KafkaProducer) Produce(payload []byte) error
func (*KafkaProducer) Stop ¶
func (kp *KafkaProducer) Stop()
Click to show internal directories.
Click to hide internal directories.