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 fetches messages from kafka and calls the view function to update itself
func NewConsumer ¶
func NewConsumer(consumer sarama.Consumer, partition sarama.PartitionConsumer, reducer func(msg *sarama.ConsumerMessage) error) *Consumer
NewConsumer constructs a startable Consumer
Click to show internal directories.
Click to hide internal directories.