kafka

package
v0.0.0-...-c4618b4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAsyncProducer

func NewAsyncProducer(conf Config) (sarama.AsyncProducer, error)

NewAsyncProducer new async producer

func NewConsumer

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

NewConsumer new kafka consumer

func NewConsumerGroup

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

NewConsumerGroup new kafka consumer group

func NewSyncProducer

func NewSyncProducer(conf Config) (sarama.SyncProducer, error)

NewSyncProducer new sync producer

Types

type Config

type Config struct {
	Sarama sarama.Config

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

Config config

Jump to

Keyboard shortcuts

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