goka

package
v0.0.0-...-07c78b9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 10 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
	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, topic string) *Producer

func (*Producer) DeliveryReport

func (p *Producer) DeliveryReport(err error)

func (*Producer) ProduceAsync

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

func (*Producer) ProduceSync

func (p *Producer) ProduceSync(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