kafka

package
v0.0.0-...-1569ab3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(conf KafkaConfig) (sarama.Consumer, error)

NewConsumer new kafka consumer

func NewConsumerGroup

func NewConsumerGroup(conf KafkaConfig, group string) (sarama.ConsumerGroup, error)

NewConsumerGroup new kafka consumer group

Types

type KafkaConfig

type KafkaConfig struct {
	Sarama sarama.Config

	Broker []string `yaml:"broker"`
	Topic  string   `yaml:"topic"`
	TLS    *tls.Config
}

Config config

Jump to

Keyboard shortcuts

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