|
|
|
@ -133,6 +133,100 @@ func (x *UseProxyResp) GetTcpPort() int32 {
|
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type GetRoomNodeReq struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeReq) Reset() { |
|
|
|
|
*x = GetRoomNodeReq{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_proxy_v1_proxy_proto_msgTypes[2] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeReq) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*GetRoomNodeReq) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeReq) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_proxy_v1_proxy_proto_msgTypes[2] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
return ms |
|
|
|
|
} |
|
|
|
|
return mi.MessageOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deprecated: Use GetRoomNodeReq.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*GetRoomNodeReq) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_proxy_v1_proxy_proto_rawDescGZIP(), []int{2} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeReq) GetRoomId() int64 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.RoomId |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type GetRoomNodeResp struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
NodeId int32 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeResp) Reset() { |
|
|
|
|
*x = GetRoomNodeResp{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_proxy_v1_proxy_proto_msgTypes[3] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeResp) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*GetRoomNodeResp) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeResp) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_proxy_v1_proxy_proto_msgTypes[3] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
return ms |
|
|
|
|
} |
|
|
|
|
return mi.MessageOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deprecated: Use GetRoomNodeResp.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*GetRoomNodeResp) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_proxy_v1_proxy_proto_rawDescGZIP(), []int{3} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *GetRoomNodeResp) GetNodeId() int32 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.NodeId |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var File_proxy_v1_proxy_proto protoreflect.FileDescriptor |
|
|
|
|
|
|
|
|
|
var file_proxy_v1_proxy_proto_rawDesc = []byte{ |
|
|
|
@ -145,16 +239,26 @@ var file_proxy_v1_proxy_proto_rawDesc = []byte{
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x64, 0x70, 0x5f, |
|
|
|
|
0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x64, 0x70, 0x50, |
|
|
|
|
0x6f, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x63, 0x70, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, |
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x63, 0x70, 0x50, 0x6f, 0x72, 0x74, 0x32, 0x48, |
|
|
|
|
0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, |
|
|
|
|
0x08, 0x55, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x78, |
|
|
|
|
0x79, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, |
|
|
|
|
0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x50, |
|
|
|
|
0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, |
|
|
|
|
0x67, 0x7a, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a, 0x75, 0x6d, 0x61, |
|
|
|
|
0x69, 0x79, 0x78, 0x2e, 0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70, 0x72, 0x6f, 0x74, |
|
|
|
|
0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, |
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x63, 0x70, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x29, |
|
|
|
|
0x0a, 0x0e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, |
|
|
|
|
0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, |
|
|
|
|
0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x22, 0x2a, 0x0a, 0x0f, 0x47, 0x65, 0x74, |
|
|
|
|
0x52, 0x6f, 0x6f, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x17, 0x0a, 0x07, |
|
|
|
|
0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, |
|
|
|
|
0x6f, 0x64, 0x65, 0x49, 0x64, 0x32, 0x8c, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, |
|
|
|
|
0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x78, |
|
|
|
|
0x79, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, |
|
|
|
|
0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, |
|
|
|
|
0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, |
|
|
|
|
0x12, 0x42, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x12, |
|
|
|
|
0x18, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, |
|
|
|
|
0x6f, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x78, |
|
|
|
|
0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x4e, 0x6f, 0x64, 0x65, |
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x67, 0x7a, 0x2e, 0x69, |
|
|
|
|
0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a, 0x75, 0x6d, 0x61, 0x69, 0x79, 0x78, 0x2e, |
|
|
|
|
0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, |
|
|
|
|
0x6f, 0x78, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
|
|
|
|
0x33, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
@ -169,16 +273,20 @@ func file_proxy_v1_proxy_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_proxy_v1_proxy_proto_rawDescData |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var file_proxy_v1_proxy_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
|
|
|
|
var file_proxy_v1_proxy_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
|
|
|
|
var file_proxy_v1_proxy_proto_goTypes = []interface{}{ |
|
|
|
|
(*UseProxyReq)(nil), // 0: proxy.v1.UseProxyReq
|
|
|
|
|
(*UseProxyResp)(nil), // 1: proxy.v1.UseProxyResp
|
|
|
|
|
(*UseProxyReq)(nil), // 0: proxy.v1.UseProxyReq
|
|
|
|
|
(*UseProxyResp)(nil), // 1: proxy.v1.UseProxyResp
|
|
|
|
|
(*GetRoomNodeReq)(nil), // 2: proxy.v1.GetRoomNodeReq
|
|
|
|
|
(*GetRoomNodeResp)(nil), // 3: proxy.v1.GetRoomNodeResp
|
|
|
|
|
} |
|
|
|
|
var file_proxy_v1_proxy_proto_depIdxs = []int32{ |
|
|
|
|
0, // 0: proxy.v1.ProxyServer.UseProxy:input_type -> proxy.v1.UseProxyReq
|
|
|
|
|
1, // 1: proxy.v1.ProxyServer.UseProxy:output_type -> proxy.v1.UseProxyResp
|
|
|
|
|
1, // [1:2] is the sub-list for method output_type
|
|
|
|
|
0, // [0:1] is the sub-list for method input_type
|
|
|
|
|
2, // 1: proxy.v1.ProxyServer.GetRoomNode:input_type -> proxy.v1.GetRoomNodeReq
|
|
|
|
|
1, // 2: proxy.v1.ProxyServer.UseProxy:output_type -> proxy.v1.UseProxyResp
|
|
|
|
|
3, // 3: proxy.v1.ProxyServer.GetRoomNode:output_type -> proxy.v1.GetRoomNodeResp
|
|
|
|
|
2, // [2:4] is the sub-list for method output_type
|
|
|
|
|
0, // [0:2] 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
|
|
|
|
@ -214,6 +322,30 @@ func file_proxy_v1_proxy_proto_init() {
|
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_proxy_v1_proxy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*GetRoomNodeReq); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_proxy_v1_proxy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*GetRoomNodeResp); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
type x struct{} |
|
|
|
|
out := protoimpl.TypeBuilder{ |
|
|
|
@ -221,7 +353,7 @@ func file_proxy_v1_proxy_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
|
|
|
RawDescriptor: file_proxy_v1_proxy_proto_rawDesc, |
|
|
|
|
NumEnums: 0, |
|
|
|
|
NumMessages: 2, |
|
|
|
|
NumMessages: 4, |
|
|
|
|
NumExtensions: 0, |
|
|
|
|
NumServices: 1, |
|
|
|
|
}, |
|
|
|
|