kafka

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgVersion = sarama.V0_10_2_0

Functions

func NewKafkaClient

func NewKafkaClient(brokers []string, netConfig *config.KafkaNetConfig) (sarama.Client, error)

Types

type KafkaAsyncProducer

type KafkaAsyncProducer struct {
	sarama.AsyncProducer
	// contains filtered or unexported fields
}

func NewKafkaAsyncProducer

func NewKafkaAsyncProducer(mqConfig *config.KafkaGlobalConfig, partitionerConstructor sarama.PartitionerConstructor) (*KafkaAsyncProducer, error)

type KafkaMetaData

type KafkaMetaData struct {
	InputSequenceNumber int64
	InputStreamKey      string
	MysqlPositionConfig utils.MySQLBinlogPosition
}

Jump to

Keyboard shortcuts

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