kafka

package
v0.0.0-...-0eb41cc Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaProducer

func NewKafkaProducer(cfg *config.AppConfig) (interfaces.KafkaService, error)

NewKafkaProducer создает новый экземпляр продюсера Kafka

Types

type KafkaProducer

type KafkaProducer struct {
	// contains filtered or unexported fields
}

func (*KafkaProducer) Close

func (p *KafkaProducer) Close() error

Close закрывает соединение с Kafka

func (*KafkaProducer) Produce

func (p *KafkaProducer) Produce(ctx context.Context, key, value []byte) error

Produce отправляет сообщение в Kafka

Jump to

Keyboard shortcuts

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