MasterKenway commented on a change in pull request #286:
URL: https://github.com/apache/dubbo-go-pixiu/pull/286#discussion_r734948418



##########
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 {

Review comment:
       最初的设想是想把所有请求根据类型划分 然后统一为一个结构体 有必要拆分吗




-- 
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: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to