impl

package
v0.0.0-...-b1757e7 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQClient

type MQClient struct {
	Connection *amqp.Connection
	Channel    *amqp.Channel
	// contains filtered or unexported fields
}

func GetMQClient

func GetMQClient() *MQClient

func NewClient

func NewClient(dsn string) (*MQClient, error)

func (*MQClient) Close

func (mq *MQClient) Close()

func (*MQClient) Consumer

func (mq *MQClient) Consumer(queueName string) (<-chan amqp.Delivery, error)

func (*MQClient) GetCtx

func (mq *MQClient) GetCtx() *gin.Context

func (*MQClient) Init

func (mq *MQClient) Init() error

func (*MQClient) Name

func (mq *MQClient) Name() string

func (*MQClient) Publish

func (mq *MQClient) Publish(c *gin.Context, queueName string, body interface{}, resultChan chan interface{}) error

func (*MQClient) RetrieveResultChannel

func (mq *MQClient) RetrieveResultChannel(queueName string) chan interface{}

func (*MQClient) StoreResultChannel

func (mq *MQClient) StoreResultChannel(queueName string, resultChan chan interface{})

Jump to

Keyboard shortcuts

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