command
Version:
v0.0.0-...-908d554
Opens a new window with list of versions in this module.
Published: Nov 2, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Broker
Micro中的broker用于代理消息的发布与订阅。
本章节只讲如何使用broker的基础方式
内容
- main.go mian程序运行两个协程10秒钟,各自负责发布与订阅消息。
- plugin.go 引入rabbitmq插件
运行程序
go run main.go plugin.go --broker=rabbitmq
在rabbitmq管理控制台上发送消息
进入控制台的相应的mu.micro.book.topic.queue上发送消息如下图:
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.