MasterKenway commented on a change in pull request #286:
URL: https://github.com/apache/dubbo-go-pixiu/pull/286#discussion_r734943153
##########
File path: pkg/filter/event/msg.go
##########
@@ -0,0 +1,38 @@
+package event
+
+// Msq Request Action Type Enum
+
+type MQType string
+
+type MQAction int
+
+const (
+ MQActionPublish = 1 + iota
+ MQActionSubscribe
+ MQActionUnSubscribe
+ MQActionConsumeAck
+)
+
+var MQActionIntToStr = map[MQAction]string{
+ MQActionPublish: "publish",
+ MQActionSubscribe: "subscribe",
+ MQActionUnSubscribe: "unsubscribe",
+ MQActionConsumeAck: "consumeack",
+}
+
+var MQActionStrToInt = map[string]MQAction{
+ "publish": MQActionPublish,
+ "subscribe": MQActionSubscribe,
+ "unsubscribe": MQActionUnSubscribe,
+ "consumeack": MQActionConsumeAck,
+}
+
+// MQRequest url format http://domain/publish/broker/topic
+type MQRequest struct {
+ ConsumerHook string `json:"consumer_hook"` // not empty when subscribe
msg, eg: http://10.0.0.1:11451/consume
Review comment:
和下面的 checkUrl 统一下? consumeUrl
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]