sarama

package
v0.0.0-...-f2dfb0a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 7 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 {
	Servers         string
	Topic           string
	EnablePartition bool
	Message         chan interface{}
	Done            chan bool
}

func (*Consumer) Start

func (c *Consumer) Start()

type Producer

type Producer struct {
	BootstrapServers []string
	// contains filtered or unexported fields
}

func NewProducer

func NewProducer(bootstrapServers string) *Producer

func (*Producer) DeliveryReport

func (p *Producer) DeliveryReport()

func (*Producer) ProduceAsync

func (p *Producer) ProduceAsync(topic string, key string, value string)

func (*Producer) ProduceSync

func (p *Producer) ProduceSync(topic string, key string, value string)

func (*Producer) Wait

func (p *Producer) Wait()

Jump to

Keyboard shortcuts

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