modulepackage
1.3.0
Repository: https://github.com/aacfactory/fns-contrib.git
Documentation: pkg.go.dev
# README
Kafka
Install
go get github.com/aacfactory/fns-contrib/message-queues/kafka
Usage
app.Deploy(kafka.New(kafka.WithConsumeHandler(name, handleFn)))
Config
kafka:
brokers:
- "192.168.0.1:9092"
producers:
enable: true
num: 4
partitioner:
name: "round_robin"
consumers:
nameA:
group: "groupId"
topics:
- "topicA"
As proxy
publishErr := kafka.Publish(ctx, kafka.NewMessage(topic, key, body))
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
ConsumeHandler value is uncompressed.
No description provided by the author
No description provided by the author
No description provided by the author