factory

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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) 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