kafka

package
v0.0.0-...-c0bc5af Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 3 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 {
	Brokers []string
}

func (*Consumer) New

func (c *Consumer) New() (sarama.Consumer, error)

New returns a new kafka connection as a Consumer.

type Producer

type Producer struct {
	Brokers []string
}

func (*Producer) Enqueue

func (p *Producer) Enqueue(topic string, message []byte) error

Enqueue adds a new message to a queue by topic.

func (*Producer) New

func (p *Producer) New() (sarama.AsyncProducer, error)

New returns a new kafka connection as a Producer.

Jump to

Keyboard shortcuts

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