kafka

package module
v0.0.0-...-521eeb7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: MIT Imports: 2 Imported by: 2

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
}

func NewConsumer

func NewConsumer(brokers []string, topic string) *Consumer

func (*Consumer) Close

func (this *Consumer) Close()

Close stops processing messages and releases the corresponding resources

func (*Consumer) Consume

func (this *Consumer) Consume(processMessage func([]byte))

Consume messages and process them through the method pass in parameter

type Producer

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

func NewProducer

func NewProducer(brokers []string) *Producer

Constructor

func (*Producer) Close

func (this *Producer) Close()

func (*Producer) SendMessageToTopic

func (this *Producer) SendMessageToTopic(message []byte, topic string) error

Jump to

Keyboard shortcuts

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