Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AsyncProducer sarama.AsyncProducer
View Source
var Consumer *cluster.Consumer
View Source
var KafkaCloseSign = false
View Source
var KafkaWait sync.WaitGroup
View Source
var MsgChan = make(chan string, 1000)
View Source
var StopChan = make(chan struct{})
View Source
var StopPublishChan = make(chan struct{})
View Source
var SyncProducer sarama.SyncProducer
Functions ¶
func AsyncPublishStart ¶
func AsyncPublishStart()
func ConsumeStart ¶
func ConsumeStart()
"github.com/Shopify/sarama"不支持consume group,故选择再次封装的"github.com/bsm/sarama-cluster"
func SyncPublishStart ¶
func SyncPublishStart()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.