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
}
Consumer coordinates the consuming of the queue
func (*Consumer) MsgChan ¶
func (c *Consumer) MsgChan() <-chan *pb.LeadpipeEvent
MsgChan returns a message channel for consuming
type ConsumerConfig ¶
type ConsumerConfig struct { ConsumerGroupID string Brokers []string Topic string MessageChan chan *pb.LeadpipeEvent }
ConsumerConfig configures a Consumer
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer is a thin wrapper around a Sarama producer. It hides the Sarama API
func NewProducer ¶
NewProducer creates a new producer given a list of broker addresses
Click to show internal directories.
Click to hide internal directories.