Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
消费者对象
func (*Consumer) BindJSONChan ¶
func (c *Consumer) BindJSONChan(channel interface{})
将消息输出绑定到指定管道上,此方法内会进行反序列化,输出的消息类型可以是指定对象类型
func (*Consumer) BytesMessages ¶
消息读取管道,管道消息类型是byte切片
Click to show internal directories.
Click to hide internal directories.