kafka

package
v0.0.0-...-3e6c4c2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 4 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 NewKafkaProducer

func NewKafkaProducer(address []string) (*KafkaProducer, error)

实例化kafka

func (*KafkaProducer) SyncSend

func (self *KafkaProducer) SyncSend(data interface{}, topic string) (int32, int64, error)

同步发送

Jump to

Keyboard shortcuts

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