factory

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQ

type RabbitMQ struct {
	Connect *rabbitmq.Connect
}

func (*RabbitMQ) Close

func (r *RabbitMQ) Close()

func (*RabbitMQ) ConnectMQ

func (r *RabbitMQ) ConnectMQ()

func (*RabbitMQ) GetExchange

func (r *RabbitMQ) GetExchange(exchange, kind string) error

GetExchange 获取交换机

func (*RabbitMQ) GetQueue

func (r *RabbitMQ) GetQueue(name string) (amqp.Queue, error)

GetQueue 获取队列

func (*RabbitMQ) QueueBind added in v1.0.9

func (r *RabbitMQ) QueueBind(name, key, exchange string, noWait bool, args amqp.Table) error

QueueBind 绑定队列

func (*RabbitMQ) SendMsg

func (r *RabbitMQ) SendMsg(exchange, key string, msg []byte) error

SendMsg 发送消息

Jump to

Keyboard shortcuts

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