Bläddra i källkod

message.go

[fin]message.go change variable name
secure
jaehoon_kim 4 år sedan
förälder
incheckning
a0e3377a12
1 ändrade filer med 6 tillägg och 5 borttagningar
  1. 6
    5
      modules/message.go

+ 6
- 5
modules/message.go Visa fil

@@ -46,16 +46,17 @@ type KeyShareMsg struct {
46 46
 //전달할 내용을 담은 메세지
47 47
 type PublishMsg struct {
48 48
 	Message
49
-	subscription []int64 //대주제
49
+	topic []int64 //대주제
50
+	value []int64 //topic의 세부적인 내용
50 51
 	content      []int64 // 내용
51 52
 }
52 53
 
53 54
 //구독 정보를 담은 메세지
54 55
 type SubscriptionMsg struct {
55 56
 	Message
56
-	subscription []int64 //대주제
57
-	content []int64 //내용
58
-	value string //범위
57
+	topic []int64 //대주제
58
+	value []string //범위 및 세부조건, 피연산자 연산자 순으로 등장
59
+	isAlpha bool // 범위연산인지 단순비교연산인지 구분 가능하게 함
59 60
 }
60 61
 
61 62
 //Microservice 등록 메세지
@@ -63,7 +64,7 @@ type RegisterMsg struct {
63 64
 	Message
64 65
 }
65 66
 
66
-//Microservice 탈퇴 메세지
67
+//Microservice 탈퇴 메세지(없앰)
67 68
 type WithdrawMsg struct {
68 69
 	Message
69 70
 }

Laddar…
Avbryt
Spara