|
@@ -262,9 +262,7 @@ type SyncRequest struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
- Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
|
|
|
|
|
- Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Где опубликовать запрос
|
|
|
|
|
- Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
|
|
|
|
|
|
|
+ TopicMsg *TopicMsg `protobuf:"bytes,1,opt,name=topicMsg,proto3" json:"topicMsg,omitempty"` // Вложенное сообщение
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (x *SyncRequest) Reset() {
|
|
func (x *SyncRequest) Reset() {
|
|
@@ -299,40 +297,24 @@ func (*SyncRequest) Descriptor() ([]byte, []int) {
|
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{4}
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{4}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *SyncRequest) GetSource() int32 {
|
|
|
|
|
- if x != nil {
|
|
|
|
|
- return x.Source
|
|
|
|
|
- }
|
|
|
|
|
- return 0
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (x *SyncRequest) GetTopic() string {
|
|
|
|
|
- if x != nil {
|
|
|
|
|
- return x.Topic
|
|
|
|
|
- }
|
|
|
|
|
- return ""
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (x *SyncRequest) GetMsg() []byte {
|
|
|
|
|
|
|
+func (x *SyncRequest) GetTopicMsg() *TopicMsg {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
- return x.Msg
|
|
|
|
|
|
|
+ return x.TopicMsg
|
|
|
}
|
|
}
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// TopicMsg -- сообщение топика (внутри шины данных)
|
|
|
|
|
-type TopicMsg struct {
|
|
|
|
|
|
|
+// SyncResponse -- ответ на синхронный запрос
|
|
|
|
|
+type SyncResponse struct {
|
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
- Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
|
|
|
|
|
- Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Где опубликовать запрос
|
|
|
|
|
- Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
|
|
|
|
|
|
|
+ Msg []byte `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty"` // Содержимое ответа на синхроныый запрос
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *TopicMsg) Reset() {
|
|
|
|
|
- *x = TopicMsg{}
|
|
|
|
|
|
|
+func (x *SyncResponse) Reset() {
|
|
|
|
|
+ *x = SyncResponse{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_api_gobus_proto_msgTypes[5]
|
|
mi := &file_api_gobus_proto_msgTypes[5]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -340,13 +322,13 @@ func (x *TopicMsg) Reset() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *TopicMsg) String() string {
|
|
|
|
|
|
|
+func (x *SyncResponse) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (*TopicMsg) ProtoMessage() {}
|
|
|
|
|
|
|
+func (*SyncResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
-func (x *TopicMsg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
+func (x *SyncResponse) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_api_gobus_proto_msgTypes[5]
|
|
mi := &file_api_gobus_proto_msgTypes[5]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -358,43 +340,30 @@ func (x *TopicMsg) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// Deprecated: Use TopicMsg.ProtoReflect.Descriptor instead.
|
|
|
|
|
-func (*TopicMsg) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
+// Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*SyncResponse) Descriptor() ([]byte, []int) {
|
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{5}
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{5}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *TopicMsg) GetSource() int32 {
|
|
|
|
|
- if x != nil {
|
|
|
|
|
- return x.Source
|
|
|
|
|
- }
|
|
|
|
|
- return 0
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (x *TopicMsg) GetTopic() string {
|
|
|
|
|
- if x != nil {
|
|
|
|
|
- return x.Topic
|
|
|
|
|
- }
|
|
|
|
|
- return ""
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (x *TopicMsg) GetMsg() []byte {
|
|
|
|
|
|
|
+func (x *SyncResponse) GetMsg() []byte {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Msg
|
|
return x.Msg
|
|
|
}
|
|
}
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// SyncResponse -- ответ на синхронный запрос
|
|
|
|
|
-type SyncResponse struct {
|
|
|
|
|
|
|
+// PublicRequest -- запрос на публикацию сообщения
|
|
|
|
|
+type PublicRequest struct {
|
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
- Msg []byte `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty"` // Содержимое ответа на синхроныый запрос
|
|
|
|
|
|
|
+ TopicMsg *TopicMsg `protobuf:"bytes,1,opt,name=topicMsg,proto3" json:"topicMsg,omitempty"`
|
|
|
|
|
+ RepliesList []int32 `protobuf:"varint,2,rep,packed,name=RepliesList,proto3" json:"RepliesList,omitempty"` // Список реплик, на которых сообщение уже опубликовано
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *SyncResponse) Reset() {
|
|
|
|
|
- *x = SyncResponse{}
|
|
|
|
|
|
|
+func (x *PublicRequest) Reset() {
|
|
|
|
|
+ *x = PublicRequest{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_api_gobus_proto_msgTypes[6]
|
|
mi := &file_api_gobus_proto_msgTypes[6]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -402,13 +371,13 @@ func (x *SyncResponse) Reset() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *SyncResponse) String() string {
|
|
|
|
|
|
|
+func (x *PublicRequest) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (*SyncResponse) ProtoMessage() {}
|
|
|
|
|
|
|
+func (*PublicRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
-func (x *SyncResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
+func (x *PublicRequest) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_api_gobus_proto_msgTypes[6]
|
|
mi := &file_api_gobus_proto_msgTypes[6]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -420,33 +389,39 @@ func (x *SyncResponse) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
-func (*SyncResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
+// Deprecated: Use PublicRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*PublicRequest) Descriptor() ([]byte, []int) {
|
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{6}
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{6}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *SyncResponse) GetMsg() []byte {
|
|
|
|
|
|
|
+func (x *PublicRequest) GetTopicMsg() *TopicMsg {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
- return x.Msg
|
|
|
|
|
|
|
+ return x.TopicMsg
|
|
|
}
|
|
}
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// PublicRequest -- запрос на публикацию сообщения
|
|
|
|
|
-type PublicRequest struct {
|
|
|
|
|
|
|
+func (x *PublicRequest) GetRepliesList() []int32 {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.RepliesList
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// TopicMsg -- сообщение топика (внутри шины данных)
|
|
|
|
|
+type TopicMsg struct {
|
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
- Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- для реплики)
|
|
|
|
|
- Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Куда опубликовать сообщение
|
|
|
|
|
- Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
|
|
|
|
|
- Uuid string `protobuf:"bytes,4,opt,name=Uuid,proto3" json:"Uuid,omitempty"` // Уникальная метка сообщения
|
|
|
|
|
- RepliesList []int32 `protobuf:"varint,5,rep,packed,name=RepliesList,proto3" json:"RepliesList,omitempty"` // Список реплик, на которых сообщение уже опубликовано
|
|
|
|
|
|
|
+ Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
|
|
|
|
|
+ Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Где опубликовать запрос
|
|
|
|
|
+ Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
|
|
|
|
|
+ Uuid string `protobuf:"bytes,4,opt,name=Uuid,proto3" json:"Uuid,omitempty"` // Уникальная метка сообщения
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) Reset() {
|
|
|
|
|
- *x = PublicRequest{}
|
|
|
|
|
|
|
+func (x *TopicMsg) Reset() {
|
|
|
|
|
+ *x = TopicMsg{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_api_gobus_proto_msgTypes[7]
|
|
mi := &file_api_gobus_proto_msgTypes[7]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -454,13 +429,13 @@ func (x *PublicRequest) Reset() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) String() string {
|
|
|
|
|
|
|
+func (x *TopicMsg) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (*PublicRequest) ProtoMessage() {}
|
|
|
|
|
|
|
+func (*TopicMsg) ProtoMessage() {}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
+func (x *TopicMsg) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_api_gobus_proto_msgTypes[7]
|
|
mi := &file_api_gobus_proto_msgTypes[7]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -472,46 +447,39 @@ func (x *PublicRequest) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// Deprecated: Use PublicRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
-func (*PublicRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
+// Deprecated: Use TopicMsg.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*TopicMsg) Descriptor() ([]byte, []int) {
|
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{7}
|
|
return file_api_gobus_proto_rawDescGZIP(), []int{7}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) GetSource() int32 {
|
|
|
|
|
|
|
+func (x *TopicMsg) GetSource() int32 {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Source
|
|
return x.Source
|
|
|
}
|
|
}
|
|
|
return 0
|
|
return 0
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) GetTopic() string {
|
|
|
|
|
|
|
+func (x *TopicMsg) GetTopic() string {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Topic
|
|
return x.Topic
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) GetMsg() []byte {
|
|
|
|
|
|
|
+func (x *TopicMsg) GetMsg() []byte {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Msg
|
|
return x.Msg
|
|
|
}
|
|
}
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) GetUuid() string {
|
|
|
|
|
|
|
+func (x *TopicMsg) GetUuid() string {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Uuid
|
|
return x.Uuid
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *PublicRequest) GetRepliesList() []int32 {
|
|
|
|
|
- if x != nil {
|
|
|
|
|
- return x.RepliesList
|
|
|
|
|
- }
|
|
|
|
|
- return nil
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// DefaultResponse -- возвращаемое значение по умолчанию (ничего не содержит)
|
|
// DefaultResponse -- возвращаемое значение по умолчанию (ничего не содержит)
|
|
|
type DefaultResponse struct {
|
|
type DefaultResponse struct {
|
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
@@ -576,50 +544,48 @@ var file_api_gobus_proto_rawDesc = []byte{
|
|
|
0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x61, 0x6d,
|
|
0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x61, 0x6d,
|
|
|
0x70, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
|
|
0x70, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
|
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e,
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e,
|
|
|
- 0x61, 0x6d, 0x65, 0x22, 0x4d, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
- 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
- 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f,
|
|
|
|
|
- 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63,
|
|
|
|
|
- 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d,
|
|
|
|
|
- 0x73, 0x67, 0x22, 0x4a, 0x0a, 0x08, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x12, 0x16,
|
|
|
|
|
- 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
|
|
|
|
- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18,
|
|
|
|
|
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03,
|
|
|
|
|
- 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x20,
|
|
|
|
|
- 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10,
|
|
|
|
|
- 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67,
|
|
|
|
|
- 0x22, 0x85, 0x01, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
- 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
- 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f,
|
|
|
|
|
- 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63,
|
|
|
|
|
- 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d,
|
|
|
|
|
- 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
|
- 0x52, 0x04, 0x55, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x65,
|
|
|
|
|
- 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x52, 0x65, 0x70,
|
|
|
|
|
- 0x6c, 0x69, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x65, 0x66, 0x61,
|
|
|
|
|
- 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xcc, 0x02, 0x0a, 0x05,
|
|
|
|
|
- 0x47, 0x6f, 0x42, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12,
|
|
|
|
|
- 0x17, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69,
|
|
|
|
|
- 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
|
|
|
|
|
- 0x72, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
|
- 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x79, 0x6e,
|
|
|
|
|
- 0x63, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e,
|
|
|
|
|
- 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
|
|
|
|
|
- 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
|
- 0x22, 0x00, 0x12, 0x43, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12,
|
|
|
|
|
- 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
|
|
|
|
|
- 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61,
|
|
|
|
|
- 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
|
- 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63,
|
|
|
|
|
- 0x72, 0x69, 0x62, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72,
|
|
|
|
|
- 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
- 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66,
|
|
|
|
|
- 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a,
|
|
|
|
|
- 0x03, 0x47, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e,
|
|
|
|
|
- 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
|
- 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63,
|
|
|
|
|
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f,
|
|
|
|
|
- 0x6e, 0x65, 0x74, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
|
|
+ 0x61, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
+ 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x18, 0x01,
|
|
|
|
|
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e,
|
|
|
|
|
+ 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x52, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4d,
|
|
|
|
|
+ 0x73, 0x67, 0x22, 0x20, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
|
+ 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
|
|
|
|
+ 0x03, 0x4d, 0x73, 0x67, 0x22, 0x61, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65,
|
|
|
|
|
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73,
|
|
|
|
|
+ 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72,
|
|
|
|
|
+ 0x69, 0x6e, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x52, 0x08, 0x74, 0x6f, 0x70,
|
|
|
|
|
+ 0x69, 0x63, 0x4d, 0x73, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73,
|
|
|
|
|
+ 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x52, 0x65, 0x70, 0x6c,
|
|
|
|
|
+ 0x69, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x08, 0x54, 0x6f, 0x70, 0x69, 0x63,
|
|
|
|
|
+ 0x4d, 0x73, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
|
+ 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54,
|
|
|
|
|
+ 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69,
|
|
|
|
|
+ 0x63, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03,
|
|
|
|
|
+ 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
|
+ 0x09, 0x52, 0x04, 0x55, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x65, 0x66, 0x61, 0x75,
|
|
|
|
|
+ 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xcc, 0x02, 0x0a, 0x05, 0x47,
|
|
|
|
|
+ 0x6f, 0x42, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x17,
|
|
|
|
|
+ 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63,
|
|
|
|
|
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72,
|
|
|
|
|
+ 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
|
+ 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x79, 0x6e, 0x63,
|
|
|
|
|
+ 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63,
|
|
|
|
|
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72,
|
|
|
|
|
+ 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
|
|
|
|
+ 0x00, 0x12, 0x43, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x1a,
|
|
|
|
|
+ 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
|
|
|
|
|
+ 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72,
|
|
|
|
|
+ 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
|
+ 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
|
|
|
|
|
+ 0x69, 0x62, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72, 0x73,
|
|
|
|
|
+ 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
|
+ 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66, 0x66,
|
|
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x03,
|
|
|
|
|
+ 0x47, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53,
|
|
|
|
|
+ 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
|
|
+ 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52,
|
|
|
|
|
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x6e,
|
|
|
|
|
+ 0x65, 0x74, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -641,27 +607,29 @@ var file_api_gobus_proto_goTypes = []interface{}{
|
|
|
(*GetRequest)(nil), // 2: parserin.GetRequest
|
|
(*GetRequest)(nil), // 2: parserin.GetRequest
|
|
|
(*SubscribeRequest)(nil), // 3: parserin.SubscribeRequest
|
|
(*SubscribeRequest)(nil), // 3: parserin.SubscribeRequest
|
|
|
(*SyncRequest)(nil), // 4: parserin.SyncRequest
|
|
(*SyncRequest)(nil), // 4: parserin.SyncRequest
|
|
|
- (*TopicMsg)(nil), // 5: parserin.TopicMsg
|
|
|
|
|
- (*SyncResponse)(nil), // 6: parserin.SyncResponse
|
|
|
|
|
- (*PublicRequest)(nil), // 7: parserin.PublicRequest
|
|
|
|
|
|
|
+ (*SyncResponse)(nil), // 5: parserin.SyncResponse
|
|
|
|
|
+ (*PublicRequest)(nil), // 6: parserin.PublicRequest
|
|
|
|
|
+ (*TopicMsg)(nil), // 7: parserin.TopicMsg
|
|
|
(*DefaultResponse)(nil), // 8: parserin.DefaultResponse
|
|
(*DefaultResponse)(nil), // 8: parserin.DefaultResponse
|
|
|
}
|
|
}
|
|
|
var file_api_gobus_proto_depIdxs = []int32{
|
|
var file_api_gobus_proto_depIdxs = []int32{
|
|
|
- 7, // 0: parserin.GoBus.Public:input_type -> parserin.PublicRequest
|
|
|
|
|
- 4, // 1: parserin.GoBus.SendSync:input_type -> parserin.SyncRequest
|
|
|
|
|
- 3, // 2: parserin.GoBus.Subscribe:input_type -> parserin.SubscribeRequest
|
|
|
|
|
- 0, // 3: parserin.GoBus.SubscribeBuffer:input_type -> parserin.BuffRequest
|
|
|
|
|
- 3, // 4: parserin.GoBus.Get:input_type -> parserin.SubscribeRequest
|
|
|
|
|
- 8, // 5: parserin.GoBus.Public:output_type -> parserin.DefaultResponse
|
|
|
|
|
- 6, // 6: parserin.GoBus.SendSync:output_type -> parserin.SyncResponse
|
|
|
|
|
- 6, // 7: parserin.GoBus.Subscribe:output_type -> parserin.SyncResponse
|
|
|
|
|
- 1, // 8: parserin.GoBus.SubscribeBuffer:output_type -> parserin.BuffResponse
|
|
|
|
|
- 6, // 9: parserin.GoBus.Get:output_type -> parserin.SyncResponse
|
|
|
|
|
- 5, // [5:10] is the sub-list for method output_type
|
|
|
|
|
- 0, // [0:5] is the sub-list for method input_type
|
|
|
|
|
- 0, // [0:0] is the sub-list for extension type_name
|
|
|
|
|
- 0, // [0:0] is the sub-list for extension extendee
|
|
|
|
|
- 0, // [0:0] is the sub-list for field type_name
|
|
|
|
|
|
|
+ 7, // 0: parserin.SyncRequest.topicMsg:type_name -> parserin.TopicMsg
|
|
|
|
|
+ 7, // 1: parserin.PublicRequest.topicMsg:type_name -> parserin.TopicMsg
|
|
|
|
|
+ 6, // 2: parserin.GoBus.Public:input_type -> parserin.PublicRequest
|
|
|
|
|
+ 4, // 3: parserin.GoBus.SendSync:input_type -> parserin.SyncRequest
|
|
|
|
|
+ 3, // 4: parserin.GoBus.Subscribe:input_type -> parserin.SubscribeRequest
|
|
|
|
|
+ 0, // 5: parserin.GoBus.SubscribeBuffer:input_type -> parserin.BuffRequest
|
|
|
|
|
+ 3, // 6: parserin.GoBus.Get:input_type -> parserin.SubscribeRequest
|
|
|
|
|
+ 8, // 7: parserin.GoBus.Public:output_type -> parserin.DefaultResponse
|
|
|
|
|
+ 5, // 8: parserin.GoBus.SendSync:output_type -> parserin.SyncResponse
|
|
|
|
|
+ 5, // 9: parserin.GoBus.Subscribe:output_type -> parserin.SyncResponse
|
|
|
|
|
+ 1, // 10: parserin.GoBus.SubscribeBuffer:output_type -> parserin.BuffResponse
|
|
|
|
|
+ 5, // 11: parserin.GoBus.Get:output_type -> parserin.SyncResponse
|
|
|
|
|
+ 7, // [7:12] is the sub-list for method output_type
|
|
|
|
|
+ 2, // [2:7] is the sub-list for method input_type
|
|
|
|
|
+ 2, // [2:2] is the sub-list for extension type_name
|
|
|
|
|
+ 2, // [2:2] is the sub-list for extension extendee
|
|
|
|
|
+ 0, // [0:2] is the sub-list for field type_name
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func init() { file_api_gobus_proto_init() }
|
|
func init() { file_api_gobus_proto_init() }
|
|
@@ -731,7 +699,7 @@ func file_api_gobus_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_api_gobus_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
file_api_gobus_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*TopicMsg); i {
|
|
|
|
|
|
|
+ switch v := v.(*SyncResponse); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|
|
@@ -743,7 +711,7 @@ func file_api_gobus_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_api_gobus_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
file_api_gobus_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SyncResponse); i {
|
|
|
|
|
|
|
+ switch v := v.(*PublicRequest); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|
|
@@ -755,7 +723,7 @@ func file_api_gobus_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_api_gobus_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
file_api_gobus_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*PublicRequest); i {
|
|
|
|
|
|
|
+ switch v := v.(*TopicMsg); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|