goProject/trunk/framework/mqMgr/model/messageInfo.go

26 lines
737 B
Go
Raw Normal View History

2025-01-06 16:01:02 +08:00
package model
// 消息对象
type MessageInfo struct {
// 本次消费的消息正文
MsgBody string `json:"msgBody"`
// 服务器生成消息的唯一标识Id
MsgId string `json:"msgId"`
// 每次消费返回唯一的消息句柄。用于删除该消息,仅上一次消费时产生的消息句柄能用于删除消息。
ReceiptHandle string `json:"receiptHandle"`
// 消费被生产出来,进入队列的时间
EnqueueTime int64 `json:"enqueueTime"`
// 第一次消费该消息的时间
FirstDequeueTime int64 `json:"firstDequeueTime"`
// 消息的下次可见(可再次被消费)时间
NextVisibleTime int64 `json:"nextVisibleTime"`
// 消息被消费的次数
DequeueCount int64 `json:"dequeueCount"`
}