kafka

package
v0.0.0-...-30685e1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 4 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 {
	Broker string
	Group  string
	Topics []string
	// contains filtered or unexported fields
}

func (*Consumer) GetConsumer

func (c *Consumer) GetConsumer() (*confluentkafka.Consumer, error)

func (*Consumer) Initialize

func (c *Consumer) Initialize(Broker string, Group string, Topics []string, Timeout int)

func (*Consumer) Listen

func (c *Consumer) Listen(messageChan chan *confluentkafka.Message) error

type Producer

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

func (*Producer) Initialize

func (p *Producer) Initialize(Broker string, Timeout int)

func (*Producer) Produce

func (p *Producer) Produce(msg []byte, topic string) error

Jump to

Keyboard shortcuts

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