-
Notifications
You must be signed in to change notification settings - Fork 0
/
message_const.go
81 lines (75 loc) · 3.61 KB
/
message_const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package rocketmq
type messageConst struct {
PropertyKeys string
PropertyTags string
PropertyWaitStoreMsgOk string
PropertyDelayTimeLevel string
PropertyRetryTopic string
PropertyRealTopic string
PropertyRealQueueId string
PropertyTransactionPrepared string
PropertyProducerGroup string
PropertyMinOffset string
PropertyMaxOffset string
PropertyBuyerId string
PropertyOriginMessageId string
PropertyTransferFlag string
PropertyCorrectionFlag string
PropertyMq2Flag string
PropertyReconsumeTime string
PropertyMsgRegion string
PropertyUniqClientMessageIdKeyidx string
PropertyMaxReconsumeTimes string
PropertyConsumeStartTimeStamp string
KeySeparator string
systemKeySet []string
}
var MessageConst = &messageConst{
PropertyKeys: "KEYS",
PropertyTags: "TAGS",
PropertyWaitStoreMsgOk: "WAIT",
PropertyDelayTimeLevel: "DELAY",
PropertyRetryTopic: "RETRY_TOPIC",
PropertyRealTopic: "REAL_TOPIC",
PropertyRealQueueId: "REAL_QID",
PropertyTransactionPrepared: "TRAN_MSG",
PropertyProducerGroup: "PGROUP",
PropertyMinOffset: "MIN_OFFSET",
PropertyMaxOffset: "MAX_OFFSET",
PropertyBuyerId: "BUYER_ID",
PropertyOriginMessageId: "ORIGIN_MESSAGE_ID",
PropertyTransferFlag: "TRANSFER_FLAG",
PropertyCorrectionFlag: "CORRECTION_FLAG",
PropertyMq2Flag: "MQ2_FLAG",
PropertyReconsumeTime: "RECONSUME_TIME",
PropertyMsgRegion: "MSG_REGION",
PropertyUniqClientMessageIdKeyidx: "UNIQ_KEY",
PropertyMaxReconsumeTimes: "MAX_RECONSUME_TIMES",
PropertyConsumeStartTimeStamp: "CONSUME_START_TIME",
KeySeparator: "",
}
func init() {
var systemKeySet = make([]string, 0)
systemKeySet = append(systemKeySet, MessageConst.PropertyKeys)
systemKeySet = append(systemKeySet, MessageConst.PropertyTags)
systemKeySet = append(systemKeySet, MessageConst.PropertyWaitStoreMsgOk)
systemKeySet = append(systemKeySet, MessageConst.PropertyDelayTimeLevel)
systemKeySet = append(systemKeySet, MessageConst.PropertyRetryTopic)
systemKeySet = append(systemKeySet, MessageConst.PropertyRealTopic)
systemKeySet = append(systemKeySet, MessageConst.PropertyRealQueueId)
systemKeySet = append(systemKeySet, MessageConst.PropertyTransactionPrepared)
systemKeySet = append(systemKeySet, MessageConst.PropertyProducerGroup)
systemKeySet = append(systemKeySet, MessageConst.PropertyMinOffset)
systemKeySet = append(systemKeySet, MessageConst.PropertyMaxOffset)
systemKeySet = append(systemKeySet, MessageConst.PropertyBuyerId)
systemKeySet = append(systemKeySet, MessageConst.PropertyOriginMessageId)
systemKeySet = append(systemKeySet, MessageConst.PropertyTransferFlag)
systemKeySet = append(systemKeySet, MessageConst.PropertyCorrectionFlag)
systemKeySet = append(systemKeySet, MessageConst.PropertyMq2Flag)
systemKeySet = append(systemKeySet, MessageConst.PropertyReconsumeTime)
systemKeySet = append(systemKeySet, MessageConst.PropertyMsgRegion)
systemKeySet = append(systemKeySet, MessageConst.PropertyUniqClientMessageIdKeyidx)
systemKeySet = append(systemKeySet, MessageConst.PropertyMaxReconsumeTimes)
systemKeySet = append(systemKeySet, MessageConst.PropertyConsumeStartTimeStamp)
MessageConst.systemKeySet = systemKeySet
}