rabbitmq

package
v2.1.41 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect added in v2.1.16

func Connect()

Connect 初始化连接rabbitmq

func Consume

func Consume(queue string) (<-chan amqp.Delivery, error)

Consume 普通模式消费消息

func Publish

func Publish(exchange, msg string, durable bool) error

Publish 发布订阅模式发布消息

func Push

func Push(msg string, msgName string) error

Push 普通模式发布消息

func SubScribe

func SubScribe(exchange string, durable bool) (<-chan amqp.Delivery, error)

SubScribe 发布订阅模式消费消息

func UpdateRabbitmq

func UpdateRabbitmq() error

UpdateRabbitmq 配置发生变动后调用更新实例

Types

This section is empty.

Jump to

Keyboard shortcuts

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