kafka

package
v0.0.0-...-42baa12 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 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 KafkaConsumer

type KafkaConsumer struct {
	Message chan *ckafka.Message
}

func NewConsumer

func NewConsumer(message chan *ckafka.Message) *KafkaConsumer

func (*KafkaConsumer) Consume

func (k *KafkaConsumer) Consume()

type Producer

type Producer struct {
	Handler *ckafka.Producer
}

func NewProducer

func NewProducer() *Producer

func (*Producer) Publish

func (p *Producer) Publish(message string, topic string) error

Jump to

Keyboard shortcuts

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