forked from didapinchegit/go_rocket_mq
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsend_result.go
33 lines (29 loc) · 808 Bytes
/
send_result.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
package rocketmq
const (
SendStatusOK = iota
SendStatusFlushDiskTimeout
SendStatusFlushSlaveTimeout
SendStatusSlaveNotAvailable
)
type SendResult struct {
sendStatus int
msgId string
messageQueue *MessageQueue
queueOffset int64
transactionId string
offsetMsgId string
regionId string
}
func NewSendResult(sendStatus int, msgId string, offsetMsgId string, messageQueue *MessageQueue, queueOffset int64) *SendResult {
return &SendResult{
sendStatus: sendStatus,
msgId: msgId,
offsetMsgId: offsetMsgId,
messageQueue: messageQueue,
queueOffset: queueOffset,
}
}
func (s *SendResult) SendResult(SendStatus int, msgId string, messageQueue MessageQueue, queueOffset uint64,
transactionId string, offsetMsgId string, regionId string) (ok bool) {
return
}