kafka_handlers

package
v0.0.0-...-ac35e32 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaConsumerService

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

func NewKafkaConsumerService

func NewKafkaConsumerService(
	eventEmitter *infrastructure.EventEmitter,
	kr *kafka.Reader,
	db *gorm.DB,
	rdb *redis.Client,
	s3Client *s3.S3,
	natsClient *nats.Conn,
) *KafkaConsumerService

func (*KafkaConsumerService) CloseConsumer

func (k *KafkaConsumerService) CloseConsumer() error

func (*KafkaConsumerService) ConsumeEchoIncomingText

func (svc *KafkaConsumerService) ConsumeEchoIncomingText(message string) error

func (*KafkaConsumerService) InitAndRegisterConsumer

func (svc *KafkaConsumerService) InitAndRegisterConsumer(ctx context.Context, consumeFn func(m *kafka.Message) error)

func (*KafkaConsumerService) InitEventHandlers

func (svc *KafkaConsumerService) InitEventHandlers()

Jump to

Keyboard shortcuts

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