kafka

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaConfig

type KafkaConfig struct {
	Addrs []string
	*sarama.Config
}

type KafkaConsumer

type KafkaConsumer struct {
	sarama.Consumer
	Conf KafkaConsumerConfig
}

func (*KafkaConsumer) Close

func (c *KafkaConsumer) Close() error

func (*KafkaConsumer) Config

func (k *KafkaConsumer) Config() any

func (*KafkaConsumer) SetEntity

func (k *KafkaConsumer) SetEntity()

type KafkaConsumerConfig

type KafkaConsumerConfig KafkaConfig

func (*KafkaConsumerConfig) Build

func (conf *KafkaConsumerConfig) Build() sarama.Consumer

type KafkaProducer

type KafkaProducer struct {
	sarama.SyncProducer
	Conf KafkaProducerConfig
}

func (*KafkaProducer) Close

func (c *KafkaProducer) Close() error

func (*KafkaProducer) Config

func (k *KafkaProducer) Config() any

func (*KafkaProducer) SetEntity

func (k *KafkaProducer) SetEntity()

type KafkaProducerConfig

type KafkaProducerConfig KafkaConfig

func (*KafkaProducerConfig) Build

func (conf *KafkaProducerConfig) Build() sarama.SyncProducer

Jump to

Keyboard shortcuts

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