kafka

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 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 `yaml:"sarama"`

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

Config config

Jump to

Keyboard shortcuts

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