64 Star 199 Fork 81

cloudzone/smartgo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mq_admin.go 656 Bytes
一键复制 编辑 原始数据 按行查看 历史
tantexian 提交于 7年前 . 增加注释
package stgclient
// MQAdmin MQ管理
//
// 注意:
// (1)MQAdmin接口不能引入"git.oschina.net/cloudzone/smartgo/stgcommon/message"包,否则产生循环引用
// (2)把属于MQAdmin接口的部分方法移入MQAdminExtInner接口,用来解决包循环引用的问题
// (3)移动的方法包括 searchOffset()、maxOffset()、minOffset()、earliestMsgStoreTime()、viewMessage()、queryMessage()
//
// Author: tianyuliang
// Since: 2017/11/2
type MQAdmin interface {
// 创建Topic
// key 消息队列已存在的topic
// newTopic 需新建的topic
// queueNum 读写队列的数量
CreateTopic(key, newTopic string, queueNum int) error
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/cloudzone/smartgo.git
git@gitee.com:cloudzone/smartgo.git
cloudzone
smartgo
smartgo
dev

搜索帮助