kafkahelper

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsumerHelper = NewConsumerHelper()
View Source
var ErrHelperAlreadyInited = errors.New("proxy already inited yet")

ErrHelperAlreadyInited 代理已经初始化错误

View Source
var ErrHelperNotInited = errors.New("proxy not inited yet")

ErrHelperNotInited 代理未初始化错误

View Source
var ProducerHelper = NewProducerHelper()

Functions

func NewConsumerHelper

func NewConsumerHelper() *kafkaConsumerHelper

NewConsumerHelper 创建一个kafka客户端代理

func NewProducerHelper added in v0.0.2

func NewProducerHelper() *kafkaProducerHelper

NewProducerHelper 创建一个新的数据库客户端代理

Types

type KafkaConsumerHanddler

type KafkaConsumerHanddler func(msg *kafka.Message)

KafkaConsumerHanddler kafka消费端的处理程序

type KafkaConsumerHelperCallback

type KafkaConsumerHelperCallback func(consumer *kafka.Consumer) error

KafkaConsumerHelperCallback KafkaProducer操作的回调函数

type KafkaProducerHelperCallback added in v0.0.2

type KafkaProducerHelperCallback func(producer *kafka.Producer) error

KafkaProducerHelperCallback KafkaProducer操作的回调函数

Jump to

Keyboard shortcuts

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