kafka

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(topic string, data map[string]interface{})

Send 发送消息到队列 @param string topic 消息主题 @param map[string]interface{} data 消息数据 @return bool error 返回一个bool值和一个错误信息

Types

type Consumer

type Consumer struct {
	Topic        string
	MessageQueue chan []byte
}

Consumer 消费者结构体

func (*Consumer) Exec added in v1.6.0

func (k *Consumer) Exec()

Exec 消费者 @return void

Jump to

Keyboard shortcuts

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