kafka

package
v0.0.0-...-ca54044 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 2 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 {
	ConfigMap *ckafka.ConfigMap
	Topics    []string
}

func NewConsumer

func NewConsumer(configMap *ckafka.ConfigMap, topics []string) *Consumer

func (*Consumer) Consume

func (c *Consumer) Consume(ch chan<- *ckafka.Message) error

type Producer

type Producer struct {
	ConfigMap *ckafka.ConfigMap
}

func NewProducer

func NewProducer(configMap *ckafka.ConfigMap) *Producer

func (*Producer) Publish

func (p *Producer) Publish(msg interface{}, key []byte, topic string) error

Jump to

Keyboard shortcuts

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