Просмотр исходного кода

message.go

[fin]message.go change variable name
secure
jaehoon_kim 4 лет назад
Родитель
Сommit
a0e3377a12
1 измененных файлов: 6 добавлений и 5 удалений
  1. 6
    5
      modules/message.go

+ 6
- 5
modules/message.go Просмотреть файл

46
 //전달할 내용을 담은 메세지
46
 //전달할 내용을 담은 메세지
47
 type PublishMsg struct {
47
 type PublishMsg struct {
48
 	Message
48
 	Message
49
-	subscription []int64 //대주제
49
+	topic []int64 //대주제
50
+	value []int64 //topic의 세부적인 내용
50
 	content      []int64 // 내용
51
 	content      []int64 // 내용
51
 }
52
 }
52
 
53
 
53
 //구독 정보를 담은 메세지
54
 //구독 정보를 담은 메세지
54
 type SubscriptionMsg struct {
55
 type SubscriptionMsg struct {
55
 	Message
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
 //Microservice 등록 메세지
62
 //Microservice 등록 메세지
63
 	Message
64
 	Message
64
 }
65
 }
65
 
66
 
66
-//Microservice 탈퇴 메세지
67
+//Microservice 탈퇴 메세지(없앰)
67
 type WithdrawMsg struct {
68
 type WithdrawMsg struct {
68
 	Message
69
 	Message
69
 }
70
 }

Загрузка…
Отмена
Сохранить