gitlab-global-service-client-poc 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab/cells.rb +3 -2
- data/lib/proto/claim_service_pb.rb +58 -0
- data/lib/proto/claim_service_services_pb.rb +28 -0
- data/lib/proto/classify_service_pb.rb +30 -0
- data/lib/proto/classify_service_services_pb.rb +26 -0
- data/lib/proto/common_pb.rb +27 -0
- data/lib/proto/sequence_service_pb.rb +38 -0
- data/lib/proto/sequence_service_services_pb.rb +27 -0
- metadata +9 -4
- data/lib/proto/gs_pb.rb +0 -87
- data/lib/proto/gs_services_pb.rb +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2caddc6d95377250a4c161f20028fbbd57f49a4709e8db336017b62e0fd7b9ff
|
4
|
+
data.tar.gz: 991a2af959bb564601ad3226fb1c37999adb1bd2df840c22583d4160eaba2ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8ffbc9229d3a319f949ae45deb89373312243b6384adaf13864edfd6af1e12429b679aecceaabb7f17555cb5afe1cfd383fc540ddf212bbef6ce9028ab28add
|
7
|
+
data.tar.gz: 99749a08300b812b6dbf54f445ca5d3dbbfe46e959c5de48633b5b1b82f55426e5178c67b83d00e9007cb29be6fd3bf9c950412aa27d2a9b34d311636a969fb2
|
data/Gemfile.lock
CHANGED
data/lib/gitlab/cells.rb
CHANGED
@@ -0,0 +1,58 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: proto/claim_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'proto/common_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("proto/claim_service.proto", :syntax => :proto3) do
|
9
|
+
add_message "gitlab.cells.ClaimInfo" do
|
10
|
+
optional :id, :int64, 1
|
11
|
+
optional :claim_type, :enum, 2, "gitlab.cells.ClaimType"
|
12
|
+
optional :claim_name, :string, 3
|
13
|
+
optional :resource_type, :string, 4
|
14
|
+
optional :resource_id, :int64, 5
|
15
|
+
optional :cell_id, :int64, 6
|
16
|
+
proto3_optional :cell_info, :message, 7, "gitlab.cells.CellInfo"
|
17
|
+
end
|
18
|
+
add_message "gitlab.cells.CreateClaimRequest" do
|
19
|
+
optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
|
20
|
+
optional :claim_name, :string, 2
|
21
|
+
optional :resource_type, :string, 3
|
22
|
+
optional :resource_id, :int64, 4
|
23
|
+
end
|
24
|
+
add_message "gitlab.cells.CreateClaimResponse" do
|
25
|
+
optional :claim, :message, 1, "gitlab.cells.ClaimInfo"
|
26
|
+
end
|
27
|
+
add_message "gitlab.cells.GetClaimsRequest" do
|
28
|
+
optional :resource_type, :string, 3
|
29
|
+
optional :resource_id, :int64, 4
|
30
|
+
end
|
31
|
+
add_message "gitlab.cells.GetClaimsResponse" do
|
32
|
+
repeated :claims, :message, 1, "gitlab.cells.ClaimInfo"
|
33
|
+
end
|
34
|
+
add_message "gitlab.cells.DestroyClaimRequest" do
|
35
|
+
optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
|
36
|
+
optional :claim_name, :string, 2
|
37
|
+
end
|
38
|
+
add_message "gitlab.cells.DestroyClaimResponse" do
|
39
|
+
end
|
40
|
+
add_enum "gitlab.cells.ClaimType" do
|
41
|
+
value :Unknown, 0
|
42
|
+
value :Routes, 1
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
module Gitlab
|
48
|
+
module Cells
|
49
|
+
ClaimInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimInfo").msgclass
|
50
|
+
CreateClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CreateClaimRequest").msgclass
|
51
|
+
CreateClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CreateClaimResponse").msgclass
|
52
|
+
GetClaimsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.GetClaimsRequest").msgclass
|
53
|
+
GetClaimsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.GetClaimsResponse").msgclass
|
54
|
+
DestroyClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.DestroyClaimRequest").msgclass
|
55
|
+
DestroyClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.DestroyClaimResponse").msgclass
|
56
|
+
ClaimType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimType").enummodule
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: proto/claim_service.proto for package 'Gitlab.Cells'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'proto/claim_service_pb'
|
6
|
+
|
7
|
+
module Gitlab
|
8
|
+
module Cells
|
9
|
+
module ClaimService
|
10
|
+
# Restricted read-write service to claim global uniqueness on resources
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'gitlab.cells.ClaimService'
|
18
|
+
|
19
|
+
rpc :GetCells, Gitlab::Cells::GetCellsRequest, Gitlab::Cells::GetCellsResponse
|
20
|
+
rpc :CreateClaim, Gitlab::Cells::CreateClaimRequest, Gitlab::Cells::CreateClaimResponse
|
21
|
+
rpc :GetClaims, Gitlab::Cells::GetClaimsRequest, Gitlab::Cells::GetClaimsResponse
|
22
|
+
rpc :DestroyClaim, Gitlab::Cells::DestroyClaimRequest, Gitlab::Cells::DestroyClaimResponse
|
23
|
+
end
|
24
|
+
|
25
|
+
Stub = Service.rpc_stub_class
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: proto/classify_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'proto/common_pb'
|
7
|
+
require 'proto/claim_service_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("proto/classify_service.proto", :syntax => :proto3) do
|
11
|
+
add_message "gitlab.cells.ClassifyRequest" do
|
12
|
+
optional :match, :enum, 2, "gitlab.cells.ClassifyMatch"
|
13
|
+
optional :value, :string, 3
|
14
|
+
end
|
15
|
+
add_message "gitlab.cells.ClassifyResponse" do
|
16
|
+
optional :claim_info, :message, 1, "gitlab.cells.ClaimInfo"
|
17
|
+
end
|
18
|
+
add_enum "gitlab.cells.ClassifyMatch" do
|
19
|
+
value :Route, 0
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
module Gitlab
|
25
|
+
module Cells
|
26
|
+
ClassifyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyRequest").msgclass
|
27
|
+
ClassifyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyResponse").msgclass
|
28
|
+
ClassifyMatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyMatch").enummodule
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: proto/classify_service.proto for package 'Gitlab.Cells'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'proto/classify_service_pb'
|
6
|
+
|
7
|
+
module Gitlab
|
8
|
+
module Cells
|
9
|
+
module ClassifyService
|
10
|
+
# Public read-only service used by various Routing Services
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'gitlab.cells.ClassifyService'
|
18
|
+
|
19
|
+
rpc :GetCells, Gitlab::Cells::GetCellsRequest, Gitlab::Cells::GetCellsResponse
|
20
|
+
rpc :Classify, Gitlab::Cells::ClassifyRequest, Gitlab::Cells::ClassifyResponse
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: proto/common.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("proto/common.proto", :syntax => :proto3) do
|
8
|
+
add_message "gitlab.cells.CellInfo" do
|
9
|
+
optional :id, :int64, 1
|
10
|
+
optional :name, :string, 2
|
11
|
+
optional :address, :string, 3
|
12
|
+
end
|
13
|
+
add_message "gitlab.cells.GetCellsRequest" do
|
14
|
+
end
|
15
|
+
add_message "gitlab.cells.GetCellsResponse" do
|
16
|
+
repeated :cells, :message, 1, "gitlab.cells.CellInfo"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Gitlab
|
22
|
+
module Cells
|
23
|
+
CellInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CellInfo").msgclass
|
24
|
+
GetCellsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.GetCellsRequest").msgclass
|
25
|
+
GetCellsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.GetCellsResponse").msgclass
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: proto/sequence_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'proto/common_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("proto/sequence_service.proto", :syntax => :proto3) do
|
9
|
+
add_message "gitlab.cells.SequenceInfo" do
|
10
|
+
optional :request_id, :int64, 1
|
11
|
+
optional :table_name, :string, 2
|
12
|
+
optional :block_start, :int64, 3
|
13
|
+
optional :block_size, :int64, 4
|
14
|
+
end
|
15
|
+
add_message "gitlab.cells.CreateSequenceRequest" do
|
16
|
+
optional :table_name, :string, 1
|
17
|
+
optional :block_size, :int64, 2
|
18
|
+
end
|
19
|
+
add_message "gitlab.cells.CreateSequenceResponse" do
|
20
|
+
optional :info, :message, 1, "gitlab.cells.SequenceInfo"
|
21
|
+
end
|
22
|
+
add_message "gitlab.cells.ValidateSequenceRequest" do
|
23
|
+
optional :info, :message, 1, "gitlab.cells.SequenceInfo"
|
24
|
+
end
|
25
|
+
add_message "gitlab.cells.ValidateSequenceResponse" do
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Gitlab
|
31
|
+
module Cells
|
32
|
+
SequenceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.SequenceInfo").msgclass
|
33
|
+
CreateSequenceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CreateSequenceRequest").msgclass
|
34
|
+
CreateSequenceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CreateSequenceResponse").msgclass
|
35
|
+
ValidateSequenceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ValidateSequenceRequest").msgclass
|
36
|
+
ValidateSequenceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ValidateSequenceResponse").msgclass
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: proto/sequence_service.proto for package 'Gitlab.Cells'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'proto/sequence_service_pb'
|
6
|
+
|
7
|
+
module Gitlab
|
8
|
+
module Cells
|
9
|
+
module SequenceService
|
10
|
+
# Restricted read-write service to provide cluster-wide primary key uniqueness
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'gitlab.cells.SequenceService'
|
18
|
+
|
19
|
+
rpc :GetCells, Gitlab::Cells::GetCellsRequest, Gitlab::Cells::GetCellsResponse
|
20
|
+
rpc :CreateSequence, Gitlab::Cells::CreateSequenceRequest, Gitlab::Cells::CreateSequenceResponse
|
21
|
+
rpc :ValidateSequence, Gitlab::Cells::ValidateSequenceRequest, Gitlab::Cells::ValidateSequenceResponse
|
22
|
+
end
|
23
|
+
|
24
|
+
Stub = Service.rpc_stub_class
|
25
|
+
end
|
26
|
+
end
|
27
|
+
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.0
|
4
|
+
version: 0.1.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-02-
|
11
|
+
date: 2024-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -36,8 +36,13 @@ files:
|
|
36
36
|
- Gemfile
|
37
37
|
- Gemfile.lock
|
38
38
|
- lib/gitlab/cells.rb
|
39
|
-
- lib/proto/
|
40
|
-
- lib/proto/
|
39
|
+
- lib/proto/claim_service_pb.rb
|
40
|
+
- lib/proto/claim_service_services_pb.rb
|
41
|
+
- lib/proto/classify_service_pb.rb
|
42
|
+
- lib/proto/classify_service_services_pb.rb
|
43
|
+
- lib/proto/common_pb.rb
|
44
|
+
- lib/proto/sequence_service_pb.rb
|
45
|
+
- lib/proto/sequence_service_services_pb.rb
|
41
46
|
homepage: https://gitlab.com/gitlab-org/tenant-scale-group/pocs/global-service
|
42
47
|
licenses:
|
43
48
|
- MIT
|
data/lib/proto/gs_pb.rb
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: proto/gs.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("proto/gs.proto", :syntax => :proto3) do
|
9
|
-
add_message "gitlab.cells.SequenceRequest" do
|
10
|
-
optional :table_name, :string, 1
|
11
|
-
optional :block_size, :int64, 2
|
12
|
-
end
|
13
|
-
add_message "gitlab.cells.SequenceBlockInfo" do
|
14
|
-
optional :request_id, :int64, 1
|
15
|
-
optional :table_name, :string, 2
|
16
|
-
optional :block_start, :int64, 3
|
17
|
-
optional :block_size, :int64, 4
|
18
|
-
end
|
19
|
-
add_message "gitlab.cells.SequenceResponse" do
|
20
|
-
optional :info, :message, 1, "gitlab.cells.SequenceBlockInfo"
|
21
|
-
end
|
22
|
-
add_message "gitlab.cells.ClaimRequest" do
|
23
|
-
optional :claim_type, :enum, 1, "gitlab.cells.ClaimType"
|
24
|
-
optional :claim_name, :string, 2
|
25
|
-
optional :resource_type, :string, 3
|
26
|
-
optional :resource_id, :int64, 4
|
27
|
-
end
|
28
|
-
add_message "gitlab.cells.ClaimInfo" do
|
29
|
-
optional :id, :int64, 1
|
30
|
-
optional :claim_type, :enum, 2, "gitlab.cells.ClaimType"
|
31
|
-
optional :claim_name, :string, 3
|
32
|
-
optional :resource_type, :string, 4
|
33
|
-
optional :resource_id, :int64, 5
|
34
|
-
optional :cell_id, :int64, 6
|
35
|
-
proto3_optional :cell_info, :message, 7, "gitlab.cells.CellInfo"
|
36
|
-
end
|
37
|
-
add_message "gitlab.cells.ClaimResponse" do
|
38
|
-
optional :claim, :message, 1, "gitlab.cells.ClaimInfo"
|
39
|
-
end
|
40
|
-
add_message "gitlab.cells.ClaimsResponse" do
|
41
|
-
repeated :claims, :message, 1, "gitlab.cells.ClaimInfo"
|
42
|
-
end
|
43
|
-
add_message "gitlab.cells.CellInfo" do
|
44
|
-
optional :id, :int64, 1
|
45
|
-
optional :name, :string, 2
|
46
|
-
optional :address, :string, 3
|
47
|
-
end
|
48
|
-
add_message "gitlab.cells.CellsRequest" do
|
49
|
-
end
|
50
|
-
add_message "gitlab.cells.CellsResponse" do
|
51
|
-
repeated :cells, :message, 1, "gitlab.cells.CellInfo"
|
52
|
-
end
|
53
|
-
add_message "gitlab.cells.ClassifyRequest" do
|
54
|
-
optional :match, :enum, 2, "gitlab.cells.ClassifyMatch"
|
55
|
-
optional :value, :string, 3
|
56
|
-
end
|
57
|
-
add_message "gitlab.cells.ClassifyResponse" do
|
58
|
-
optional :claim_info, :message, 1, "gitlab.cells.ClaimInfo"
|
59
|
-
end
|
60
|
-
add_enum "gitlab.cells.ClaimType" do
|
61
|
-
value :Unknown, 0
|
62
|
-
value :Routes, 1
|
63
|
-
end
|
64
|
-
add_enum "gitlab.cells.ClassifyMatch" do
|
65
|
-
value :Route, 0
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
module Gitlab
|
71
|
-
module Cells
|
72
|
-
SequenceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.SequenceRequest").msgclass
|
73
|
-
SequenceBlockInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.SequenceBlockInfo").msgclass
|
74
|
-
SequenceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.SequenceResponse").msgclass
|
75
|
-
ClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimRequest").msgclass
|
76
|
-
ClaimInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimInfo").msgclass
|
77
|
-
ClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimResponse").msgclass
|
78
|
-
ClaimsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimsResponse").msgclass
|
79
|
-
CellInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CellInfo").msgclass
|
80
|
-
CellsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CellsRequest").msgclass
|
81
|
-
CellsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.CellsResponse").msgclass
|
82
|
-
ClassifyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyRequest").msgclass
|
83
|
-
ClassifyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyResponse").msgclass
|
84
|
-
ClaimType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClaimType").enummodule
|
85
|
-
ClassifyMatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.cells.ClassifyMatch").enummodule
|
86
|
-
end
|
87
|
-
end
|
data/lib/proto/gs_services_pb.rb
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: proto/gs.proto for package 'Gitlab.Cells'
|
3
|
-
|
4
|
-
require 'grpc'
|
5
|
-
require 'proto/gs_pb'
|
6
|
-
|
7
|
-
module Gitlab
|
8
|
-
module Cells
|
9
|
-
module SequenceService
|
10
|
-
# Restricted read-write service to provide cluster-wide primary key uniqueness
|
11
|
-
class Service
|
12
|
-
|
13
|
-
include GRPC::GenericService
|
14
|
-
|
15
|
-
self.marshal_class_method = :encode
|
16
|
-
self.unmarshal_class_method = :decode
|
17
|
-
self.service_name = 'gitlab.cells.SequenceService'
|
18
|
-
|
19
|
-
rpc :GetCells, Gitlab::Cells::CellsRequest, Gitlab::Cells::CellsResponse
|
20
|
-
rpc :RequestSequence, Gitlab::Cells::SequenceRequest, Gitlab::Cells::SequenceResponse
|
21
|
-
rpc :ValidateSequence, Gitlab::Cells::SequenceResponse, Gitlab::Cells::SequenceResponse
|
22
|
-
end
|
23
|
-
|
24
|
-
Stub = Service.rpc_stub_class
|
25
|
-
end
|
26
|
-
module ClaimService
|
27
|
-
# Restricted read-write service to claim global uniqueness on resources
|
28
|
-
class Service
|
29
|
-
|
30
|
-
include GRPC::GenericService
|
31
|
-
|
32
|
-
self.marshal_class_method = :encode
|
33
|
-
self.unmarshal_class_method = :decode
|
34
|
-
self.service_name = 'gitlab.cells.ClaimService'
|
35
|
-
|
36
|
-
rpc :GetCells, Gitlab::Cells::CellsRequest, Gitlab::Cells::CellsResponse
|
37
|
-
rpc :RequestClaim, Gitlab::Cells::ClaimRequest, Gitlab::Cells::ClaimResponse
|
38
|
-
rpc :GetClaims, Gitlab::Cells::ClaimRequest, Gitlab::Cells::ClaimsResponse
|
39
|
-
rpc :DeleteClaim, Gitlab::Cells::ClaimRequest, Gitlab::Cells::ClaimsResponse
|
40
|
-
end
|
41
|
-
|
42
|
-
Stub = Service.rpc_stub_class
|
43
|
-
end
|
44
|
-
module ClassifyService
|
45
|
-
# Public read-only service used by various Routing Services
|
46
|
-
class Service
|
47
|
-
|
48
|
-
include GRPC::GenericService
|
49
|
-
|
50
|
-
self.marshal_class_method = :encode
|
51
|
-
self.unmarshal_class_method = :decode
|
52
|
-
self.service_name = 'gitlab.cells.ClassifyService'
|
53
|
-
|
54
|
-
rpc :GetCells, Gitlab::Cells::CellsRequest, Gitlab::Cells::CellsResponse
|
55
|
-
rpc :Classify, Gitlab::Cells::ClassifyRequest, Gitlab::Cells::ClassifyResponse
|
56
|
-
end
|
57
|
-
|
58
|
-
Stub = Service.rpc_stub_class
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|