Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xxl6097/go-rocketmq
基于Go语言的RocketMQ封装
https://github.com/xxl6097/go-rocketmq
Last synced: about 1 month ago
JSON representation
基于Go语言的RocketMQ封装
- Host: GitHub
- URL: https://github.com/xxl6097/go-rocketmq
- Owner: xxl6097
- License: artistic-2.0
- Created: 2023-12-18T07:26:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-05T05:45:43.000Z (8 months ago)
- Last Synced: 2024-11-03T09:27:31.556Z (3 months ago)
- Language: Go
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## RocketMQ地址:
http://10.6.14.3:12581/#/message
name-server:10.6.14.3:9876
tcp公共组件--->clink服务 topic: clink-tcp-to-any-topic
clink服务--->tcp公共组件 topic: clink-any-to-tcp-topic## 添加库
go get -u gitee.com/xxl6097/go-rocketmq## 添加RocketMQ依赖
go get -u github.com/apache/rocketmq-client-go/v2
go mod tidy## RocketMQ Go版本代码
https://blog.csdn.net/the_shy_faker/article/details/128965426## 协议规则
/**
* 第三方Tcp客户端唯一标识
*/
private String clientId;/**
* 任务唯一标识
*/
private String taskId;/**
* tcp原始16进制值
*/
private String sourceData;/**
* tcp内容
*/
private Object bodyData;/**
* 收到消息处理时判断的key,如果不填则为产品Id
*/
private String matchKey;/**
* CLife产品Id
*/
private String productId;/**
* 第三方唯一标识
*/
private String sn;/**
* 1、第三方推送的消息类型 UpCommandCodeEnum
* 2、推送到第三方的消息类型 DownCommandCodeEnum
*/
private String commandEnumCode;