From 44ed992c5d12b985c474c877a68439d5e1d77e3a Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 08 一月 2021 11:05:55 +0800
Subject: [PATCH] add log
---
message.go | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/message.go b/message.go
index 0f252a9..aea3e7e 100644
--- a/message.go
+++ b/message.go
@@ -4,7 +4,7 @@
PORT_DEFAULTPROXY int = 5000
KEY_REGISTER int = 101 //澶勭悊TOPIC_REGISTER / TOPIC_LEAVE鍜孴OPIC_UPDATETOPIC
KEY_HEARTBEAT int = 102 //澶勭悊TOPIC_HEARTBEAT
- KEY_QUERY int = 103 //澶勭悊TOPIC_QUERYKEY鍜孴OPIC_QUERYTOPIC
+ KEY_QUERY int = 103 //澶勭悊TOPIC_QUERYKEY鍜孴OPIC_QUERYTOPIC鍜孴OPIC_QUERYPROC
)
const (
@@ -16,6 +16,7 @@
TOPIC_UPDATETOPIC string = "Topic_UpdateTopic"
TOPIC_QUERYKEY string = "Topic_QueryKey"
TOPIC_QUERYTOPIC string = "Topic_QueryTopic"
+ TOPIC_QUERYPROC string = "Topic_QueryProc"
)
const (
@@ -104,4 +105,14 @@
SvrInfo ServerInfo `json:"svrInfo"` //鑺傜偣鍩烘湰淇℃伅
Topic2Key map[string]int `json:"topic2Key"` //topic-replyKey鐨勫搴斿叧绯�
Status int `json:"status"` //鑺傜偣鐘舵��
+}
+
+
+//宸叉敞鍐岀殑Proc杩涚▼淇℃伅
+type RegisteredClient struct {
+ Info RegisterInfo `json:"info"`
+ ReplyKey int `json:"replyKey"`
+ HeartbeatCount int `json:"heartbeatCount"`
+ DeadCount int `json:"deadCount"`
+ Status int `json:"status"`
}
\ No newline at end of file
--
Gitblit v1.8.0