Documentation ¶
Index ¶
Constants ¶
View Source
const (
// VERSION version
VERSION = "0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { Addrs []string `json:"addrs" yaml:"addrs"` //如果定义了group,则addrs是zookeeper的地址(2181),否则的话是kafka的地址(9092) Topics []string `json:"topics" yaml:"topics"` Group string `json:"group" yaml:"group"` Offset string `json:"offset" yaml:"offset"` Message chan []byte `json:"-" yaml:"-"` //从这个管道中读取数据 *kafka.Consumer `json:"-" yaml:"-"` }
Consumer xx 一些使用说明: sarame.OffsetNewest int64 = -1 sarame.OffsetOldest int64 = -2
Click to show internal directories.
Click to hide internal directories.