gitlab-global-service-client-poc 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/go-sql-spanner/benchmarks/benchwrapper/proto/spanner_pb.rb +41 -0
- data/lib/go-sql-spanner/benchmarks/benchwrapper/proto/spanner_services_pb.rb +54 -0
- data/lib/proto/claim_service_pb.rb +23 -21
- data/lib/proto/claim_service_services_pb.rb +2 -1
- data/lib/proto/classify_service_pb.rb +9 -4
- data/lib/proto/sequence_service_pb.rb +1 -1
- data/lib/proto/types_pb.rb +46 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3065c273dafad6490aae7a36365f4eda9cfaef91e9d65ce12110f221a25aa34d
|
4
|
+
data.tar.gz: a979f57bda153058938d6ab78c54313b07d0111991d8ba83a410a86f432aa062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8150873b00536d82458f50f09ac3e4b18bac49ef5a2cadf9d159ed4279b00816943d45a910cf9d00519ab52fe392b04be6bf23e0446d7fb6ab4d723682cc59d
|
7
|
+
data.tar.gz: c83071ee0b76785f8ac2b5e6d37c736efec699ca764729ce4fbf42bbc9c8182e222fdc7c2cbba50953d4e53a4b2285ac03fe297a4383890fc01b146b7e729add
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: go-sql-spanner/benchmarks/benchwrapper/proto/spanner.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("go-sql-spanner/benchmarks/benchwrapper/proto/spanner.proto", :syntax => :proto3) do
|
8
|
+
add_message "spanner_bench.Singer" do
|
9
|
+
optional :id, :int64, 1
|
10
|
+
optional :first_name, :string, 2
|
11
|
+
optional :last_name, :string, 3
|
12
|
+
optional :singer_info, :string, 4
|
13
|
+
end
|
14
|
+
add_message "spanner_bench.Album" do
|
15
|
+
optional :id, :int64, 1
|
16
|
+
optional :singer_id, :int64, 2
|
17
|
+
optional :album_title, :string, 3
|
18
|
+
end
|
19
|
+
add_message "spanner_bench.ReadQuery" do
|
20
|
+
optional :query, :string, 1
|
21
|
+
end
|
22
|
+
add_message "spanner_bench.InsertQuery" do
|
23
|
+
repeated :singers, :message, 1, "spanner_bench.Singer"
|
24
|
+
repeated :albums, :message, 2, "spanner_bench.Album"
|
25
|
+
end
|
26
|
+
add_message "spanner_bench.UpdateQuery" do
|
27
|
+
repeated :queries, :string, 1
|
28
|
+
end
|
29
|
+
add_message "spanner_bench.EmptyResponse" do
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
module SpannerBench
|
35
|
+
Singer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spanner_bench.Singer").msgclass
|
36
|
+
Album = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spanner_bench.Album").msgclass
|
37
|
+
ReadQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spanner_bench.ReadQuery").msgclass
|
38
|
+
InsertQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spanner_bench.InsertQuery").msgclass
|
39
|
+
UpdateQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spanner_bench.UpdateQuery").msgclass
|
40
|
+
EmptyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("spanner_bench.EmptyResponse").msgclass
|
41
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: go-sql-spanner/benchmarks/benchwrapper/proto/spanner.proto for package 'SpannerBench'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'go-sql-spanner/benchmarks/benchwrapper/proto/spanner_pb'
|
21
|
+
|
22
|
+
module SpannerBench
|
23
|
+
module SpannerBenchWrapper
|
24
|
+
class Service
|
25
|
+
|
26
|
+
include GRPC::GenericService
|
27
|
+
|
28
|
+
self.marshal_class_method = :encode
|
29
|
+
self.unmarshal_class_method = :decode
|
30
|
+
self.service_name = 'spanner_bench.SpannerBenchWrapper'
|
31
|
+
|
32
|
+
# Read represents operations like Go's ReadOnlyTransaction.Query, Java's
|
33
|
+
# ReadOnlyTransaction.executeQuery, Python's snapshot.read, and Node's
|
34
|
+
# Transaction.Read.
|
35
|
+
#
|
36
|
+
# It will typically be used to read many items.
|
37
|
+
rpc :Read, SpannerBench::ReadQuery, SpannerBench::EmptyResponse
|
38
|
+
# Insert represents operations like Go's Client.Apply, Java's
|
39
|
+
# DatabaseClient.writeAtLeastOnce, Python's transaction.commit, and Node's
|
40
|
+
# Transaction.Commit.
|
41
|
+
#
|
42
|
+
# It will typically be used to insert many items.
|
43
|
+
rpc :Insert, SpannerBench::InsertQuery, SpannerBench::EmptyResponse
|
44
|
+
# Update represents operations like Go's ReadWriteTransaction.BatchUpdate,
|
45
|
+
# Java's TransactionRunner.run, Python's Batch.update, and Node's
|
46
|
+
# Transaction.BatchUpdate.
|
47
|
+
#
|
48
|
+
# It will typically be used to update many items.
|
49
|
+
rpc :Update, SpannerBench::UpdateQuery, SpannerBench::EmptyResponse
|
50
|
+
end
|
51
|
+
|
52
|
+
Stub = Service.rpc_stub_class
|
53
|
+
end
|
54
|
+
end
|
@@ -4,43 +4,44 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'proto/common_pb'
|
7
|
+
require 'proto/types_pb'
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("proto/claim_service.proto", :syntax => :proto3) do
|
9
10
|
add_message "gitlab.cells.ClaimInfo" do
|
10
|
-
optional :
|
11
|
+
optional :uuid, :bytes, 1
|
11
12
|
optional :claim_type, :enum, 2, "gitlab.cells.ClaimType"
|
12
|
-
optional :
|
13
|
-
optional :
|
14
|
-
|
15
|
-
|
16
|
-
proto3_optional :cell_info, :message, 7, "gitlab.cells.CellInfo"
|
13
|
+
optional :claim_value, :string, 3
|
14
|
+
optional :cell_id, :int64, 4
|
15
|
+
proto3_optional :cell_info, :message, 5, "gitlab.cells.CellInfo"
|
16
|
+
repeated :metadata, :message, 9, "gitlab.cells.ClaimMetadataInfo"
|
17
17
|
end
|
18
18
|
add_message "gitlab.cells.CreateClaimRequest" do
|
19
19
|
optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
|
20
|
-
optional :
|
21
|
-
|
22
|
-
optional :resource_id, :int64, 4
|
20
|
+
optional :claim_value, :string, 2
|
21
|
+
repeated :metadata, :message, 8, "gitlab.cells.ClaimMetadataInfo"
|
23
22
|
end
|
24
23
|
add_message "gitlab.cells.CreateClaimResponse" do
|
25
24
|
optional :claim, :message, 1, "gitlab.cells.ClaimInfo"
|
26
25
|
end
|
27
|
-
add_message "gitlab.cells.
|
28
|
-
optional :
|
29
|
-
optional :
|
26
|
+
add_message "gitlab.cells.GetClaimRequest" do
|
27
|
+
optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
|
28
|
+
optional :claim_value, :string, 2
|
29
|
+
end
|
30
|
+
add_message "gitlab.cells.GetClaimResponse" do
|
31
|
+
optional :claim, :message, 1, "gitlab.cells.ClaimInfo"
|
30
32
|
end
|
31
|
-
add_message "gitlab.cells.
|
33
|
+
add_message "gitlab.cells.FindClaimsRequest" do
|
34
|
+
optional :metadata, :message, 2, "gitlab.cells.ClaimMetadataInfo"
|
35
|
+
end
|
36
|
+
add_message "gitlab.cells.FindClaimsResponse" do
|
32
37
|
repeated :claims, :message, 1, "gitlab.cells.ClaimInfo"
|
33
38
|
end
|
34
39
|
add_message "gitlab.cells.DestroyClaimRequest" do
|
35
40
|
optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
|
36
|
-
optional :
|
41
|
+
optional :claim_value, :string, 2
|
37
42
|
end
|
38
43
|
add_message "gitlab.cells.DestroyClaimResponse" do
|
39
44
|
end
|
40
|
-
add_enum "gitlab.cells.ClaimType" do
|
41
|
-
value :Unknown, 0
|
42
|
-
value :Routes, 1
|
43
|
-
end
|
44
45
|
end
|
45
46
|
end
|
46
47
|
|
@@ -49,10 +50,11 @@ module Gitlab
|
|
49
50
|
ClaimInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimInfo").msgclass
|
50
51
|
CreateClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CreateClaimRequest").msgclass
|
51
52
|
CreateClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CreateClaimResponse").msgclass
|
52
|
-
|
53
|
-
|
53
|
+
GetClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.GetClaimRequest").msgclass
|
54
|
+
GetClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.GetClaimResponse").msgclass
|
55
|
+
FindClaimsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.FindClaimsRequest").msgclass
|
56
|
+
FindClaimsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.FindClaimsResponse").msgclass
|
54
57
|
DestroyClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.DestroyClaimRequest").msgclass
|
55
58
|
DestroyClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.DestroyClaimResponse").msgclass
|
56
|
-
ClaimType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimType").enummodule
|
57
59
|
end
|
58
60
|
end
|
@@ -18,7 +18,8 @@ module Gitlab
|
|
18
18
|
|
19
19
|
rpc :GetCells, Gitlab::Cells::GetCellsRequest, Gitlab::Cells::GetCellsResponse
|
20
20
|
rpc :CreateClaim, Gitlab::Cells::CreateClaimRequest, Gitlab::Cells::CreateClaimResponse
|
21
|
-
rpc :
|
21
|
+
rpc :GetClaim, Gitlab::Cells::GetClaimRequest, Gitlab::Cells::GetClaimResponse
|
22
|
+
rpc :FindClaims, Gitlab::Cells::FindClaimsRequest, Gitlab::Cells::FindClaimsResponse
|
22
23
|
rpc :DestroyClaim, Gitlab::Cells::DestroyClaimRequest, Gitlab::Cells::DestroyClaimResponse
|
23
24
|
end
|
24
25
|
|
@@ -4,18 +4,23 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'proto/common_pb'
|
7
|
+
require 'proto/types_pb'
|
7
8
|
require 'google/api/annotations_pb'
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("proto/classify_service.proto", :syntax => :proto3) do
|
10
11
|
add_message "gitlab.cells.ClassifyRequest" do
|
11
|
-
optional :
|
12
|
-
|
12
|
+
optional :type, :enum, 2, "gitlab.cells.ClassifyType"
|
13
|
+
oneof :value do
|
14
|
+
optional :str, :string, 3
|
15
|
+
optional :metadata, :message, 4, "gitlab.cells.ClaimMetadataInfo"
|
16
|
+
end
|
13
17
|
end
|
14
18
|
add_message "gitlab.cells.ClassifyResponse" do
|
15
19
|
optional :cell_info, :message, 1, "gitlab.cells.CellInfo"
|
16
20
|
end
|
17
|
-
add_enum "gitlab.cells.
|
21
|
+
add_enum "gitlab.cells.ClassifyType" do
|
18
22
|
value :Route, 0
|
23
|
+
value :Metadata, 1
|
19
24
|
end
|
20
25
|
end
|
21
26
|
end
|
@@ -24,6 +29,6 @@ module Gitlab
|
|
24
29
|
module Cells
|
25
30
|
ClassifyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyRequest").msgclass
|
26
31
|
ClassifyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyResponse").msgclass
|
27
|
-
|
32
|
+
ClassifyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyType").enummodule
|
28
33
|
end
|
29
34
|
end
|
@@ -7,7 +7,7 @@ require 'proto/common_pb'
|
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("proto/sequence_service.proto", :syntax => :proto3) do
|
9
9
|
add_message "gitlab.cells.SequenceInfo" do
|
10
|
-
optional :
|
10
|
+
optional :uuid, :bytes, 1
|
11
11
|
optional :table_name, :string, 2
|
12
12
|
optional :block_start, :int64, 3
|
13
13
|
optional :block_size, :int64, 4
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: proto/types.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("proto/types.proto", :syntax => :proto3) do
|
8
|
+
add_message "gitlab.cells.ClaimMetadataInfo" do
|
9
|
+
optional :id, :int64, 3
|
10
|
+
oneof :type do
|
11
|
+
optional :owner, :enum, 1, "gitlab.cells.OwnerType"
|
12
|
+
optional :table, :enum, 2, "gitlab.cells.DatabaseTable"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
add_enum "gitlab.cells.ClaimType" do
|
16
|
+
value :UnknownType, 0
|
17
|
+
value :Routes, 1
|
18
|
+
value :Emails, 2
|
19
|
+
end
|
20
|
+
add_enum "gitlab.cells.OwnerType" do
|
21
|
+
value :UnknownOwner, 0
|
22
|
+
value :User, 1
|
23
|
+
value :Organization, 2
|
24
|
+
value :Group, 3
|
25
|
+
value :Project, 4
|
26
|
+
end
|
27
|
+
add_enum "gitlab.cells.DatabaseTable" do
|
28
|
+
value :UnknownTable, 0
|
29
|
+
value :users, 1
|
30
|
+
value :emails, 2
|
31
|
+
value :projects, 3
|
32
|
+
value :namespaces, 4
|
33
|
+
value :organizations, 5
|
34
|
+
value :routes, 6
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
module Gitlab
|
40
|
+
module Cells
|
41
|
+
ClaimMetadataInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimMetadataInfo").msgclass
|
42
|
+
ClaimType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimType").enummodule
|
43
|
+
OwnerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.OwnerType").enummodule
|
44
|
+
DatabaseTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.DatabaseTable").enummodule
|
45
|
+
end
|
46
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-global-service-client-poc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Trzciński
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -36,6 +36,8 @@ files:
|
|
36
36
|
- Gemfile
|
37
37
|
- Gemfile.lock
|
38
38
|
- lib/gitlab/cells.rb
|
39
|
+
- lib/go-sql-spanner/benchmarks/benchwrapper/proto/spanner_pb.rb
|
40
|
+
- lib/go-sql-spanner/benchmarks/benchwrapper/proto/spanner_services_pb.rb
|
39
41
|
- lib/proto/claim_service_pb.rb
|
40
42
|
- lib/proto/claim_service_services_pb.rb
|
41
43
|
- lib/proto/classify_service_pb.rb
|
@@ -43,6 +45,7 @@ files:
|
|
43
45
|
- lib/proto/common_pb.rb
|
44
46
|
- lib/proto/sequence_service_pb.rb
|
45
47
|
- lib/proto/sequence_service_services_pb.rb
|
48
|
+
- lib/proto/types_pb.rb
|
46
49
|
homepage: https://gitlab.com/gitlab-org/tenant-scale-group/pocs/global-service
|
47
50
|
licenses:
|
48
51
|
- MIT
|