kafka

package
v0.0.0-...-723d53e Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaProducer

func NewKafkaProducer() *ckafka.Producer

create new producer

func Publish

func Publish(msg string, topic string, producer *ckafka.Producer) error

publish a new message

Types

type KafkaComsumer

type KafkaComsumer struct {
	MsgChan chan *ckafka.Message
}

func NewKafkaComsumer

func NewKafkaComsumer(msgChan chan *ckafka.Message) *KafkaComsumer

Fabric Pattern

func (*KafkaComsumer) Consume

func (k *KafkaComsumer) Consume()

kafka message consuming

Jump to

Keyboard shortcuts

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