mq

package
v0.0.0-...-ca8b2fb Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerHandlerImpl

type ConsumerHandlerImpl struct {
	MysqlManager   *dao.MysqlManagerImpl
	MinioClient    *minio.Client
	SummaryManager *eino.BotManagerImpl
}

func NewConsumerHandler

func NewConsumerHandler(MysqlManager *dao.MysqlManagerImpl, MinioClient *minio.Client, SummaryManager *eino.BotManagerImpl) *ConsumerHandlerImpl

type ConsumerManager

type ConsumerManager interface {
	Consume(ctx context.Context, topic string, handler *ConsumerHandlerImpl) error
}

type DLQConsumerManager

type DLQConsumerManager struct {
	DeadLetterExchange string
	Exchange           string
	// contains filtered or unexported fields
}

func NewDLQConsumerManager

func NewDLQConsumerManager(conn *amqp.Connection, deadLetterExchange, Exchange string) *DLQConsumerManager

func (*DLQConsumerManager) Consume

type PublisherManagerImpl

type PublisherManagerImpl struct {
	Exchange string
	// contains filtered or unexported fields
}

func NewPublisherManager

func NewPublisherManager(conn *amqp.Connection, exchange string) *PublisherManagerImpl

func (*PublisherManagerImpl) Send

func (p *PublisherManagerImpl) Send(ctx context.Context, RoomId int64) error

type SubscriberManagerImpl

type SubscriberManagerImpl struct {
	Exchange           string
	DeadLetterExchange string
	// contains filtered or unexported fields
}

func NewSubscriberManager

func NewSubscriberManager(conn *amqp.Connection, exchange string, dlxExchange string) *SubscriberManagerImpl

func (*SubscriberManagerImpl) Consume

func (*SubscriberManagerImpl) SubscribeCh

func (s *SubscriberManagerImpl) SubscribeCh() <-chan amqp.Delivery

Jump to

Keyboard shortcuts

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