|
@@ -21,59 +21,13 @@ const (
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
-type ConnectType int32
|
|
|
-
|
|
|
-const (
|
|
|
- ConnectType_PLAYER ConnectType = 0
|
|
|
- ConnectType_CS ConnectType = 1
|
|
|
-)
|
|
|
-
|
|
|
-// Enum value maps for ConnectType.
|
|
|
-var (
|
|
|
- ConnectType_name = map[int32]string{
|
|
|
- 0: "PLAYER",
|
|
|
- 1: "CS",
|
|
|
- }
|
|
|
- ConnectType_value = map[string]int32{
|
|
|
- "PLAYER": 0,
|
|
|
- "CS": 1,
|
|
|
- }
|
|
|
-)
|
|
|
-
|
|
|
-func (x ConnectType) Enum() *ConnectType {
|
|
|
- p := new(ConnectType)
|
|
|
- *p = x
|
|
|
- return p
|
|
|
-}
|
|
|
-
|
|
|
-func (x ConnectType) String() string {
|
|
|
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
-}
|
|
|
-
|
|
|
-func (ConnectType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
- return file_pb_flowsrv_proto_enumTypes[0].Descriptor()
|
|
|
-}
|
|
|
-
|
|
|
-func (ConnectType) Type() protoreflect.EnumType {
|
|
|
- return &file_pb_flowsrv_proto_enumTypes[0]
|
|
|
-}
|
|
|
-
|
|
|
-func (x ConnectType) Number() protoreflect.EnumNumber {
|
|
|
- return protoreflect.EnumNumber(x)
|
|
|
-}
|
|
|
-
|
|
|
-// Deprecated: Use ConnectType.Descriptor instead.
|
|
|
-func (ConnectType) EnumDescriptor() ([]byte, []int) {
|
|
|
- return file_pb_flowsrv_proto_rawDescGZIP(), []int{0}
|
|
|
-}
|
|
|
-
|
|
|
type CommandReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Type ConnectType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.ConnectType" json:"type,omitempty"`
|
|
|
- AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
+ Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
+ AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *CommandReq) Reset() {
|
|
@@ -108,11 +62,11 @@ func (*CommandReq) Descriptor() ([]byte, []int) {
|
|
|
return file_pb_flowsrv_proto_rawDescGZIP(), []int{0}
|
|
|
}
|
|
|
|
|
|
-func (x *CommandReq) GetType() ConnectType {
|
|
|
+func (x *CommandReq) GetType() int64 {
|
|
|
if x != nil {
|
|
|
return x.Type
|
|
|
}
|
|
|
- return ConnectType_PLAYER
|
|
|
+ return 0
|
|
|
}
|
|
|
|
|
|
func (x *CommandReq) GetAccessToken() string {
|
|
@@ -191,28 +145,25 @@ var file_pb_flowsrv_proto_rawDesc = []byte{
|
|
|
0x0a, 0x10, 0x70, 0x62, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70,
|
|
|
- 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
|
|
|
- 0x65, 0x71, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
|
|
|
- 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70,
|
|
|
- 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,
|
|
|
- 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61,
|
|
|
- 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x60, 0x0a, 0x0b, 0x43, 0x6f,
|
|
|
- 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
|
|
|
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a,
|
|
|
- 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12,
|
|
|
- 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
|
|
|
- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
|
|
|
- 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x21, 0x0a, 0x0b,
|
|
|
- 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x50,
|
|
|
- 0x4c, 0x41, 0x59, 0x45, 0x52, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x43, 0x53, 0x10, 0x01, 0x32,
|
|
|
- 0x66, 0x0a, 0x07, 0x46, 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x12, 0x2c, 0x0a, 0x07, 0x63, 0x6f,
|
|
|
- 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
|
- 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
|
- 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x2d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x63,
|
|
|
- 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,
|
|
|
- 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,
|
|
|
- 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
|
|
|
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
|
|
|
+ 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
|
|
+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
|
|
|
+ 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x60, 0x0a, 0x0b, 0x43, 0x6f, 0x6d,
|
|
|
+ 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03,
|
|
|
+ 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2b,
|
|
|
+ 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67,
|
|
|
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53,
|
|
|
+ 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x66, 0x0a, 0x07, 0x46,
|
|
|
+ 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x12, 0x2c, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
|
|
|
+ 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
|
|
|
+ 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x30, 0x01, 0x12, 0x2d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
|
|
|
+ 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
|
|
|
+ 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
|
|
|
+ 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
|
+ 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -227,26 +178,23 @@ func file_pb_flowsrv_proto_rawDescGZIP() []byte {
|
|
|
return file_pb_flowsrv_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_pb_flowsrv_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
var file_pb_flowsrv_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
var file_pb_flowsrv_proto_goTypes = []interface{}{
|
|
|
- (ConnectType)(0), // 0: pb.ConnectType
|
|
|
- (*CommandReq)(nil), // 1: pb.CommandReq
|
|
|
- (*CommandResp)(nil), // 2: pb.CommandResp
|
|
|
- (*structpb.Struct)(nil), // 3: google.protobuf.Struct
|
|
|
+ (*CommandReq)(nil), // 0: pb.CommandReq
|
|
|
+ (*CommandResp)(nil), // 1: pb.CommandResp
|
|
|
+ (*structpb.Struct)(nil), // 2: google.protobuf.Struct
|
|
|
}
|
|
|
var file_pb_flowsrv_proto_depIdxs = []int32{
|
|
|
- 0, // 0: pb.CommandReq.type:type_name -> pb.ConnectType
|
|
|
- 3, // 1: pb.CommandResp.data:type_name -> google.protobuf.Struct
|
|
|
- 1, // 2: pb.Flowsrv.connect:input_type -> pb.CommandReq
|
|
|
- 1, // 3: pb.Flowsrv.disconnect:input_type -> pb.CommandReq
|
|
|
- 2, // 4: pb.Flowsrv.connect:output_type -> pb.CommandResp
|
|
|
- 2, // 5: pb.Flowsrv.disconnect:output_type -> pb.CommandResp
|
|
|
- 4, // [4:6] is the sub-list for method output_type
|
|
|
- 2, // [2:4] 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
|
|
|
+ 2, // 0: pb.CommandResp.data:type_name -> google.protobuf.Struct
|
|
|
+ 0, // 1: pb.Flowsrv.connect:input_type -> pb.CommandReq
|
|
|
+ 0, // 2: pb.Flowsrv.disconnect:input_type -> pb.CommandReq
|
|
|
+ 1, // 3: pb.Flowsrv.connect:output_type -> pb.CommandResp
|
|
|
+ 1, // 4: pb.Flowsrv.disconnect:output_type -> pb.CommandResp
|
|
|
+ 3, // [3:5] is the sub-list for method output_type
|
|
|
+ 1, // [1:3] is the sub-list for method input_type
|
|
|
+ 1, // [1:1] is the sub-list for extension type_name
|
|
|
+ 1, // [1:1] is the sub-list for extension extendee
|
|
|
+ 0, // [0:1] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_pb_flowsrv_proto_init() }
|
|
@@ -285,14 +233,13 @@ func file_pb_flowsrv_proto_init() {
|
|
|
File: protoimpl.DescBuilder{
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_pb_flowsrv_proto_rawDesc,
|
|
|
- NumEnums: 1,
|
|
|
+ NumEnums: 0,
|
|
|
NumMessages: 2,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
|
GoTypes: file_pb_flowsrv_proto_goTypes,
|
|
|
DependencyIndexes: file_pb_flowsrv_proto_depIdxs,
|
|
|
- EnumInfos: file_pb_flowsrv_proto_enumTypes,
|
|
|
MessageInfos: file_pb_flowsrv_proto_msgTypes,
|
|
|
}.Build()
|
|
|
File_pb_flowsrv_proto = out.File
|