Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConsumer ¶
func SetConsumer(x Consumer)
func StartConsume ¶
func StartConsume() error
Types ¶
type ConsumerCfg ¶
type KafKaQueue ¶
type KafKaQueue struct { Addr []string Producer sarama.SyncProducer }
type SimpleConsumer ¶
type SimpleConsumer struct { Cfg *ConsumerCfg Work Worker }
func (*SimpleConsumer) Run ¶
func (consumer *SimpleConsumer) Run() error
Click to show internal directories.
Click to hide internal directories.