broker

package
v0.0.0-...-4e6b843 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaConsumer

func NewKafkaConsumer(brokers, groupID, topic string) (*kafka.Consumer, error)

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

func NewKafkaProducer

func NewKafkaProducer(cfg *config.KafkaConfig) (*kafka.Producer, error)

Types

type Producer

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

func NewProducer

func NewProducer(producer *kafka.Producer, topic string) *Producer

func (*Producer) SendCacheEvent

func (p *Producer) SendCacheEvent(event domain.EventInvalidateCache) error

func (*Producer) StartErrorLogger

func (p *Producer) StartErrorLogger(ctx context.Context)

Jump to

Keyboard shortcuts

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