simba

package
v0.0.0-...-7a1ab64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (*Consumer) Start

func (c *Consumer) Start()

Start listens for events from kafka

func (*Consumer) Stop

func (c *Consumer) Stop()

Stop ends eventloop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL