kafkaclient

package module
v0.0.0-...-582ca49 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 3 Imported by: 0

README

kafkaclient

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumerMsg

func ConsumerMsg(broders []string, topic string, groupid string, clientid string, MSG *chan []byte)

消费者

func ProducerMsg

func ProducerMsg(broders []string, topic string, clientid string, MSG *chan []byte)

生产者

Types

type MyConsumerGroupHandler

type MyConsumerGroupHandler struct {
	Msg *chan []byte
}

MyConsumerGroupHandler 是 ConsumerGroupHandler 接口的实现

func (*MyConsumerGroupHandler) Cleanup

Cleanup 执行会话结束后的清理操作

func (*MyConsumerGroupHandler) ConsumeClaim

ConsumeClaim 处理分配给消费者的消息

func (*MyConsumerGroupHandler) Setup

Setup 执行会话开始前的初始化操作

Jump to

Keyboard shortcuts

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