kafka

package
v0.0.0-...-e6ef893 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 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 KafkaSendMgr

type KafkaSendMgr struct {
	Writer kafkago.Writer
	// contains filtered or unexported fields
}

根据目标addr,传输数据的SendMgr

func NewKafkaMgr

func NewKafkaMgr(topics []string, addrs []string, compf func(messages []kafkago.Message, err error)) (result *KafkaSendMgr)

func (*KafkaSendMgr) Completion

func (this *KafkaSendMgr) Completion(messages []kafkago.Message, err error)

失败的回调

func (*KafkaSendMgr) DebugLogger

func (this *KafkaSendMgr) DebugLogger(format string, param ...interface{})

func (*KafkaSendMgr) ErrorLogger

func (this *KafkaSendMgr) ErrorLogger(format string, param ...interface{})

func (*KafkaSendMgr) Send

func (this *KafkaSendMgr) Send(index int, key string, value []byte)

func (*KafkaSendMgr) SendWithTopic

func (this *KafkaSendMgr) SendWithTopic(topic string, key string, value []byte)

func (*KafkaSendMgr) Start

func (this *KafkaSendMgr) Start(ctx context.Context)

func (*KafkaSendMgr) Stop

func (this *KafkaSendMgr) Stop()

Jump to

Keyboard shortcuts

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