kafka

package
v0.0.0-...-e05c840 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(brokers []string)

Initialize sets up the kafka package.

func Shutdown

func Shutdown()

Shutdown shuts down the kafka package.

Types

type ConsumerState

type ConsumerState struct {
	Partition int32 `json:"partition"`
	Offset    int64 `json:"offset"`
}

ConsumerState contains data that is required to create a Kafka consumer.

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

Stream is an implementation of shezmu.Stremer for Kafka messaging queue.

func (*Stream) Close

func (s *Stream) Close()

Close stops Kafka partition consumer.

func (*Stream) Messages

func (s *Stream) Messages() <-chan []byte

Messages returns a channel that stream messages.

type Subscriber

type Subscriber struct{}

Subscriber is a dummy structure that implements shezmu.Subscriber interface.

func (Subscriber) Subscribe

func (s Subscriber) Subscribe(consumerName, topic string) shezmu.Streamer

Subscribe creates a shezmu.Streamer implementation for Kafka messaging queue.

Jump to

Keyboard shortcuts

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