@ -82,6 +82,7 @@ type ClientResponse struct {
ClientId uint32 ` protobuf:"varint,1,opt,name=clientId,proto3" json:"clientId,omitempty" `
ServerPort uint32 ` protobuf:"varint,2,opt,name=serverPort,proto3" json:"serverPort,omitempty" `
Database * Database ` protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty" `
}
func ( x * ClientResponse ) Reset ( ) {
@ -130,6 +131,84 @@ func (x *ClientResponse) GetServerPort() uint32 {
return 0
}
func ( x * ClientResponse ) GetDatabase ( ) * Database {
if x != nil {
return x . Database
}
return nil
}
type Database struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
URL string ` protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty" `
ORG string ` protobuf:"bytes,2,opt,name=ORG,proto3" json:"ORG,omitempty" `
Token string ` protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty" `
Bucket string ` protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty" `
}
func ( x * Database ) Reset ( ) {
* x = Database { }
if protoimpl . UnsafeEnabled {
mi := & file_internal_pkg_grpc_server_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * Database ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Database ) ProtoMessage ( ) { }
func ( x * Database ) ProtoReflect ( ) protoreflect . Message {
mi := & file_internal_pkg_grpc_server_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 Database.ProtoReflect.Descriptor instead.
func ( * Database ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_internal_pkg_grpc_server_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
func ( x * Database ) GetURL ( ) string {
if x != nil {
return x . URL
}
return ""
}
func ( x * Database ) GetORG ( ) string {
if x != nil {
return x . ORG
}
return ""
}
func ( x * Database ) GetToken ( ) string {
if x != nil {
return x . Token
}
return ""
}
func ( x * Database ) GetBucket ( ) string {
if x != nil {
return x . Bucket
}
return ""
}
var File_internal_pkg_grpc_server_proto protoreflect . FileDescriptor
var file_internal_pkg_grpc_server_proto_rawDesc = [ ] byte {
@ -140,18 +219,27 @@ var file_internal_pkg_grpc_server_proto_rawDesc = []byte{
0x74 , 0x49 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x08 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e ,
0x74 , 0x49 , 0x64 , 0x12 , 0x1e , 0x0a , 0x0a , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x54 , 0x79 , 0x70 ,
0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0a , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x54 ,
0x79 , 0x70 , 0x65 , 0x22 , 0x 4c , 0x0a , 0x0e , 0x43 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x52 , 0x65 , 0x73 ,
0x79 , 0x70 , 0x65 , 0x22 , 0x 78 , 0x0a , 0x0e , 0x43 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x52 , 0x65 , 0x73 ,
0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x1a , 0x0a , 0x08 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x49 ,
0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x08 , 0x63 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x49 ,
0x64 , 0x12 , 0x1e , 0x0a , 0x0a , 0x73 , 0x65 , 0x72 , 0x76 , 0x65 , 0x72 , 0x50 , 0x6f , 0x72 , 0x74 , 0x18 ,
0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x0a , 0x73 , 0x65 , 0x72 , 0x76 , 0x65 , 0x72 , 0x50 , 0x6f , 0x72 ,
0x74 , 0x32 , 0x50 , 0x0a , 0x09 , 0x68 , 0x61 , 0x6e , 0x64 , 0x73 , 0x68 , 0x61 , 0x6b , 0x65 , 0x12 , 0x43 ,
0x0a , 0x16 , 0x43 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x44 , 0x69 , 0x73 , 0x63 , 0x6f , 0x76 , 0x65 , 0x72 ,
0x79 , 0x48 , 0x61 , 0x6e , 0x64 , 0x6c , 0x65 , 0x72 , 0x12 , 0x13 , 0x2e , 0x67 , 0x72 , 0x70 , 0x63 , 0x2e ,
0x43 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x14 , 0x2e ,
0x67 , 0x72 , 0x70 , 0x63 , 0x2e , 0x43 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x42 , 0x13 , 0x5a , 0x11 , 0x69 , 0x6e , 0x74 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6c , 0x2f ,
0x70 , 0x6b , 0x67 , 0x2f , 0x67 , 0x72 , 0x70 , 0x63 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x74 , 0x12 , 0x2a , 0x0a , 0x08 , 0x64 , 0x61 , 0x74 , 0x61 , 0x62 , 0x61 , 0x73 , 0x65 , 0x18 , 0x03 , 0x20 ,
0x01 , 0x28 , 0x0b , 0x32 , 0x0e , 0x2e , 0x67 , 0x72 , 0x70 , 0x63 , 0x2e , 0x44 , 0x61 , 0x74 , 0x61 , 0x62 ,
0x61 , 0x73 , 0x65 , 0x52 , 0x08 , 0x64 , 0x61 , 0x74 , 0x61 , 0x62 , 0x61 , 0x73 , 0x65 , 0x22 , 0x5c , 0x0a ,
0x08 , 0x44 , 0x61 , 0x74 , 0x61 , 0x62 , 0x61 , 0x73 , 0x65 , 0x12 , 0x10 , 0x0a , 0x03 , 0x55 , 0x52 , 0x4c ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x55 , 0x52 , 0x4c , 0x12 , 0x10 , 0x0a , 0x03 , 0x4f ,
0x52 , 0x47 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x4f , 0x52 , 0x47 , 0x12 , 0x14 , 0x0a ,
0x05 , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 , 0x74 , 0x6f ,
0x6b , 0x65 , 0x6e , 0x12 , 0x16 , 0x0a , 0x06 , 0x62 , 0x75 , 0x63 , 0x6b , 0x65 , 0x74 , 0x18 , 0x04 , 0x20 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x62 , 0x75 , 0x63 , 0x6b , 0x65 , 0x74 , 0x32 , 0x50 , 0x0a , 0x09 , 0x68 ,
0x61 , 0x6e , 0x64 , 0x73 , 0x68 , 0x61 , 0x6b , 0x65 , 0x12 , 0x43 , 0x0a , 0x16 , 0x43 , 0x6c , 0x69 , 0x65 ,
0x6e , 0x74 , 0x44 , 0x69 , 0x73 , 0x63 , 0x6f , 0x76 , 0x65 , 0x72 , 0x79 , 0x48 , 0x61 , 0x6e , 0x64 , 0x6c ,
0x65 , 0x72 , 0x12 , 0x13 , 0x2e , 0x67 , 0x72 , 0x70 , 0x63 , 0x2e , 0x43 , 0x6c , 0x69 , 0x65 , 0x6e , 0x74 ,
0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x14 , 0x2e , 0x67 , 0x72 , 0x70 , 0x63 , 0x2e , 0x43 ,
0x6c , 0x69 , 0x65 , 0x6e , 0x74 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x42 , 0x13 , 0x5a ,
0x11 , 0x69 , 0x6e , 0x74 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6c , 0x2f , 0x70 , 0x6b , 0x67 , 0x2f , 0x67 , 0x72 ,
0x70 , 0x63 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
@ -166,19 +254,21 @@ func file_internal_pkg_grpc_server_proto_rawDescGZIP() []byte {
return file_internal_pkg_grpc_server_proto_rawDescData
}
var file_internal_pkg_grpc_server_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 2 )
var file_internal_pkg_grpc_server_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 3 )
var file_internal_pkg_grpc_server_proto_goTypes = [ ] interface { } {
( * ClientRequest ) ( nil ) , // 0: grpc.ClientRequest
( * ClientResponse ) ( nil ) , // 1: grpc.ClientResponse
( * Database ) ( nil ) , // 2: grpc.Database
}
var file_internal_pkg_grpc_server_proto_depIdxs = [ ] int32 {
0 , // 0: grpc.handshake.ClientDiscoveryHandler:input_type -> grpc.ClientRequest
1 , // 1: grpc.handshake.ClientDiscoveryHandler:output_type -> grpc.ClientResponse
1 , // [1:2] is the sub-list for method output_type
0 , // [0:1] 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
2 , // 0: grpc.ClientResponse.database:type_name -> grpc.Database
0 , // 1: grpc.handshake.ClientDiscoveryHandler:input_type -> grpc.ClientRequest
1 , // 2: grpc.handshake.ClientDiscoveryHandler:output_type -> grpc.ClientResponse
2 , // [2:3] is the sub-list for method output_type
1 , // [1:2] 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_internal_pkg_grpc_server_proto_init ( ) }
@ -211,6 +301,18 @@ func file_internal_pkg_grpc_server_proto_init() {
return nil
}
}
file_internal_pkg_grpc_server_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Database ) ; 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 {
@ -218,7 +320,7 @@ func file_internal_pkg_grpc_server_proto_init() {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_internal_pkg_grpc_server_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 2 ,
NumMessages : 3 ,
NumExtensions : 0 ,
NumServices : 1 ,
} ,