Documentation ¶
Index ¶
- type KafkaSendMgr
- func (this *KafkaSendMgr) Completion(messages []kafkago.Message, err error)
- func (this *KafkaSendMgr) DebugLogger(format string, param ...interface{})
- func (this *KafkaSendMgr) ErrorLogger(format string, param ...interface{})
- func (this *KafkaSendMgr) Send(index int, key string, value []byte)
- func (this *KafkaSendMgr) SendWithTopic(topic string, key string, value []byte)
- func (this *KafkaSendMgr) Start(ctx context.Context)
- func (this *KafkaSendMgr) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaSendMgr ¶
根据目标addr,传输数据的SendMgr
func NewKafkaMgr ¶
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) 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()
Click to show internal directories.
Click to hide internal directories.