event_store_client 1.4.9 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -145
- data/docs/appending_events.md +155 -0
- data/docs/catch_up_subscriptions.md +253 -0
- data/docs/configuration.md +83 -0
- data/docs/deleting_streams.md +25 -0
- data/docs/encrypting_events.md +84 -0
- data/docs/linking_events.md +149 -0
- data/docs/reading_events.md +200 -0
- data/lib/event_store_client/adapters/grpc/client.rb +244 -105
- data/lib/event_store_client/adapters/grpc/cluster/gossip_discover.rb +131 -0
- data/lib/event_store_client/adapters/grpc/cluster/insecure_connection.rb +21 -0
- data/lib/event_store_client/adapters/grpc/cluster/member.rb +18 -0
- data/lib/event_store_client/adapters/grpc/cluster/queryless_discover.rb +25 -0
- data/lib/event_store_client/adapters/grpc/cluster/secure_connection.rb +71 -0
- data/lib/event_store_client/adapters/grpc/command_registrar.rb +7 -7
- data/lib/event_store_client/adapters/grpc/commands/command.rb +63 -25
- data/lib/event_store_client/adapters/grpc/commands/gossip/cluster_info.rb +24 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/append.rb +43 -68
- data/lib/event_store_client/adapters/grpc/commands/streams/append_multiple.rb +44 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/delete.rb +21 -17
- data/lib/event_store_client/adapters/grpc/commands/streams/hard_delete.rb +39 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/link_to.rb +7 -52
- data/lib/event_store_client/adapters/grpc/commands/streams/link_to_multiple.rb +44 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/read.rb +20 -85
- data/lib/event_store_client/adapters/grpc/commands/streams/read_paginated.rb +174 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/subscribe.rb +31 -106
- data/lib/event_store_client/adapters/grpc/connection.rb +56 -36
- data/lib/event_store_client/adapters/grpc/discover.rb +75 -0
- data/lib/event_store_client/adapters/grpc/generated/cluster_pb.rb +106 -18
- data/lib/event_store_client/adapters/grpc/generated/cluster_services_pb.rb +12 -12
- data/lib/event_store_client/adapters/grpc/generated/code_pb.rb +34 -0
- data/lib/event_store_client/adapters/grpc/generated/gossip_pb.rb +3 -2
- data/lib/event_store_client/adapters/grpc/generated/gossip_services_pb.rb +3 -3
- data/lib/event_store_client/adapters/grpc/generated/monitoring_pb.rb +25 -0
- data/lib/event_store_client/adapters/grpc/generated/monitoring_services_pb.rb +26 -0
- data/lib/event_store_client/adapters/grpc/generated/operations_pb.rb +2 -1
- data/lib/event_store_client/adapters/grpc/generated/operations_services_pb.rb +8 -7
- data/lib/event_store_client/adapters/grpc/generated/persistent_pb.rb +199 -38
- data/lib/event_store_client/adapters/grpc/generated/persistent_services_pb.rb +7 -3
- data/lib/event_store_client/adapters/grpc/generated/projections_pb.rb +9 -26
- data/lib/event_store_client/adapters/grpc/generated/projections_services_pb.rb +4 -3
- data/lib/event_store_client/adapters/grpc/generated/serverfeatures_pb.rb +29 -0
- data/lib/event_store_client/adapters/grpc/generated/serverfeatures_services_pb.rb +26 -0
- data/lib/event_store_client/adapters/grpc/generated/shared_pb.rb +54 -12
- data/lib/event_store_client/adapters/grpc/generated/status_pb.rb +23 -0
- data/lib/event_store_client/adapters/grpc/generated/streams_pb.rb +104 -64
- data/lib/event_store_client/adapters/grpc/generated/streams_services_pb.rb +3 -2
- data/lib/event_store_client/adapters/grpc/generated/users_services_pb.rb +2 -2
- data/lib/event_store_client/adapters/grpc/options/streams/read_options.rb +78 -0
- data/lib/event_store_client/adapters/grpc/options/streams/write_options.rb +39 -0
- data/lib/event_store_client/adapters/grpc/shared/event_deserializer.rb +52 -0
- data/lib/event_store_client/adapters/grpc/shared/options/filter_options.rb +76 -0
- data/lib/event_store_client/adapters/grpc/shared/options/stream_options.rb +91 -0
- data/lib/event_store_client/adapters/grpc/shared/streams/process_response.rb +28 -0
- data/lib/event_store_client/adapters/grpc/shared/streams/process_responses.rb +33 -0
- data/lib/event_store_client/adapters/grpc.rb +28 -12
- data/lib/event_store_client/configuration.rb +39 -54
- data/lib/event_store_client/connection/url.rb +57 -0
- data/lib/event_store_client/connection/url_parser.rb +144 -0
- data/lib/event_store_client/data_decryptor.rb +2 -9
- data/lib/event_store_client/deserialized_event.rb +35 -10
- data/lib/event_store_client/encryption_metadata.rb +0 -1
- data/lib/event_store_client/event.rb +4 -2
- data/lib/event_store_client/extensions/options_extension.rb +87 -0
- data/lib/event_store_client/mapper/default.rb +12 -9
- data/lib/event_store_client/mapper/encrypted.rb +18 -17
- data/lib/event_store_client/types.rb +1 -1
- data/lib/event_store_client/utils.rb +30 -0
- data/lib/event_store_client/version.rb +1 -1
- data/lib/event_store_client.rb +8 -7
- metadata +74 -83
- data/lib/event_store_client/adapters/grpc/Protos/cluster.proto +0 -149
- data/lib/event_store_client/adapters/grpc/Protos/gossip.proto +0 -44
- data/lib/event_store_client/adapters/grpc/Protos/operations.proto +0 -45
- data/lib/event_store_client/adapters/grpc/Protos/persistent.proto +0 -180
- data/lib/event_store_client/adapters/grpc/Protos/projections.proto +0 -174
- data/lib/event_store_client/adapters/grpc/Protos/shared.proto +0 -22
- data/lib/event_store_client/adapters/grpc/Protos/streams.proto +0 -242
- data/lib/event_store_client/adapters/grpc/Protos/users.proto +0 -119
- data/lib/event_store_client/adapters/grpc/README.md +0 -16
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/create.rb +0 -46
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/delete.rb +0 -34
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/read.rb +0 -77
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/settings_schema.rb +0 -38
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/update.rb +0 -48
- data/lib/event_store_client/adapters/grpc/commands/projections/create.rb +0 -48
- data/lib/event_store_client/adapters/grpc/commands/projections/delete.rb +0 -34
- data/lib/event_store_client/adapters/grpc/commands/projections/update.rb +0 -44
- data/lib/event_store_client/adapters/grpc/commands/streams/read_all.rb +0 -43
- data/lib/event_store_client/adapters/grpc/commands/streams/tombstone.rb +0 -35
- data/lib/event_store_client/adapters/http/README.md +0 -16
- data/lib/event_store_client/adapters/http/client.rb +0 -161
- data/lib/event_store_client/adapters/http/commands/command.rb +0 -27
- data/lib/event_store_client/adapters/http/commands/persistent_subscriptions/ack.rb +0 -15
- data/lib/event_store_client/adapters/http/commands/persistent_subscriptions/create.rb +0 -35
- data/lib/event_store_client/adapters/http/commands/persistent_subscriptions/read.rb +0 -60
- data/lib/event_store_client/adapters/http/commands/projections/create.rb +0 -33
- data/lib/event_store_client/adapters/http/commands/projections/update.rb +0 -31
- data/lib/event_store_client/adapters/http/commands/streams/append.rb +0 -49
- data/lib/event_store_client/adapters/http/commands/streams/delete.rb +0 -16
- data/lib/event_store_client/adapters/http/commands/streams/link_to.rb +0 -49
- data/lib/event_store_client/adapters/http/commands/streams/read.rb +0 -52
- data/lib/event_store_client/adapters/http/commands/streams/tombstone.rb +0 -17
- data/lib/event_store_client/adapters/http/connection.rb +0 -46
- data/lib/event_store_client/adapters/http/request_method.rb +0 -28
- data/lib/event_store_client/adapters/http.rb +0 -17
- data/lib/event_store_client/adapters/in_memory.rb +0 -144
- data/lib/event_store_client/broker.rb +0 -40
- data/lib/event_store_client/catch_up_subscription.rb +0 -42
- data/lib/event_store_client/catch_up_subscriptions.rb +0 -92
- data/lib/event_store_client/client.rb +0 -73
- data/lib/event_store_client/error_handler.rb +0 -10
- data/lib/event_store_client/subscription.rb +0 -23
- data/lib/event_store_client/subscriptions.rb +0 -38
- data/lib/event_store_client/value_objects/read_direction.rb +0 -43
@@ -3,7 +3,8 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
|
6
|
+
require_relative 'shared_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("cluster.proto", :syntax => :proto3) do
|
9
10
|
add_message "event_store.cluster.GossipRequest" do
|
@@ -11,28 +12,28 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
12
|
optional :server, :message, 2, "event_store.cluster.EndPoint"
|
12
13
|
end
|
13
14
|
add_message "event_store.cluster.ViewChangeRequest" do
|
14
|
-
optional :server_id, :message, 1, "event_store.client.
|
15
|
+
optional :server_id, :message, 1, "event_store.client.UUID"
|
15
16
|
optional :server_http, :message, 2, "event_store.cluster.EndPoint"
|
16
17
|
optional :attempted_view, :int32, 3
|
17
18
|
end
|
18
19
|
add_message "event_store.cluster.ViewChangeProofRequest" do
|
19
|
-
optional :server_id, :message, 1, "event_store.client.
|
20
|
+
optional :server_id, :message, 1, "event_store.client.UUID"
|
20
21
|
optional :server_http, :message, 2, "event_store.cluster.EndPoint"
|
21
22
|
optional :installed_view, :int32, 3
|
22
23
|
end
|
23
24
|
add_message "event_store.cluster.PrepareRequest" do
|
24
|
-
optional :server_id, :message, 1, "event_store.client.
|
25
|
+
optional :server_id, :message, 1, "event_store.client.UUID"
|
25
26
|
optional :server_http, :message, 2, "event_store.cluster.EndPoint"
|
26
27
|
optional :view, :int32, 3
|
27
28
|
end
|
28
29
|
add_message "event_store.cluster.PrepareOkRequest" do
|
29
30
|
optional :view, :int32, 1
|
30
|
-
optional :server_id, :message, 2, "event_store.client.
|
31
|
+
optional :server_id, :message, 2, "event_store.client.UUID"
|
31
32
|
optional :server_http, :message, 3, "event_store.cluster.EndPoint"
|
32
33
|
optional :epoch_number, :int32, 4
|
33
34
|
optional :epoch_position, :int64, 5
|
34
|
-
optional :epoch_id, :message, 6, "event_store.client.
|
35
|
-
optional :epoch_leader_instance_id, :message, 7, "event_store.client.
|
35
|
+
optional :epoch_id, :message, 6, "event_store.client.UUID"
|
36
|
+
optional :epoch_leader_instance_id, :message, 7, "event_store.client.UUID"
|
36
37
|
optional :last_commit_position, :int64, 8
|
37
38
|
optional :writer_checkpoint, :int64, 9
|
38
39
|
optional :chaser_checkpoint, :int64, 10
|
@@ -40,35 +41,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
41
|
optional :cluster_info, :message, 12, "event_store.cluster.ClusterInfo"
|
41
42
|
end
|
42
43
|
add_message "event_store.cluster.ProposalRequest" do
|
43
|
-
optional :server_id, :message, 1, "event_store.client.
|
44
|
+
optional :server_id, :message, 1, "event_store.client.UUID"
|
44
45
|
optional :server_http, :message, 2, "event_store.cluster.EndPoint"
|
45
|
-
optional :leader_id, :message, 3, "event_store.client.
|
46
|
+
optional :leader_id, :message, 3, "event_store.client.UUID"
|
46
47
|
optional :leader_http, :message, 4, "event_store.cluster.EndPoint"
|
47
48
|
optional :view, :int32, 5
|
48
49
|
optional :epoch_number, :int32, 6
|
49
50
|
optional :epoch_position, :int64, 7
|
50
|
-
optional :epoch_id, :message, 8, "event_store.client.
|
51
|
-
optional :epoch_leader_instance_id, :message, 9, "event_store.client.
|
51
|
+
optional :epoch_id, :message, 8, "event_store.client.UUID"
|
52
|
+
optional :epoch_leader_instance_id, :message, 9, "event_store.client.UUID"
|
52
53
|
optional :last_commit_position, :int64, 10
|
53
54
|
optional :writer_checkpoint, :int64, 11
|
54
55
|
optional :chaser_checkpoint, :int64, 12
|
55
56
|
optional :node_priority, :int32, 13
|
56
57
|
end
|
57
58
|
add_message "event_store.cluster.AcceptRequest" do
|
58
|
-
optional :server_id, :message, 1, "event_store.client.
|
59
|
+
optional :server_id, :message, 1, "event_store.client.UUID"
|
59
60
|
optional :server_http, :message, 2, "event_store.cluster.EndPoint"
|
60
|
-
optional :leader_id, :message, 3, "event_store.client.
|
61
|
+
optional :leader_id, :message, 3, "event_store.client.UUID"
|
61
62
|
optional :leader_http, :message, 4, "event_store.cluster.EndPoint"
|
62
63
|
optional :view, :int32, 5
|
63
64
|
end
|
64
65
|
add_message "event_store.cluster.LeaderIsResigningRequest" do
|
65
|
-
optional :leader_id, :message, 1, "event_store.client.
|
66
|
+
optional :leader_id, :message, 1, "event_store.client.UUID"
|
66
67
|
optional :leader_http, :message, 2, "event_store.cluster.EndPoint"
|
67
68
|
end
|
68
69
|
add_message "event_store.cluster.LeaderIsResigningOkRequest" do
|
69
|
-
optional :leader_id, :message, 1, "event_store.client.
|
70
|
+
optional :leader_id, :message, 1, "event_store.client.UUID"
|
70
71
|
optional :leader_http, :message, 2, "event_store.cluster.EndPoint"
|
71
|
-
optional :server_id, :message, 3, "event_store.client.
|
72
|
+
optional :server_id, :message, 3, "event_store.client.UUID"
|
72
73
|
optional :server_http, :message, 4, "event_store.cluster.EndPoint"
|
73
74
|
end
|
74
75
|
add_message "event_store.cluster.ClusterInfo" do
|
@@ -79,7 +80,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
79
80
|
optional :port, :uint32, 2
|
80
81
|
end
|
81
82
|
add_message "event_store.cluster.MemberInfo" do
|
82
|
-
optional :instance_id, :message, 1, "event_store.client.
|
83
|
+
optional :instance_id, :message, 1, "event_store.client.UUID"
|
83
84
|
optional :time_stamp, :int64, 2
|
84
85
|
optional :state, :enum, 3, "event_store.cluster.MemberInfo.VNodeState"
|
85
86
|
optional :is_alive, :bool, 4
|
@@ -93,7 +94,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
93
94
|
optional :chaser_checkpoint, :int64, 12
|
94
95
|
optional :epoch_position, :int64, 13
|
95
96
|
optional :epoch_number, :int32, 14
|
96
|
-
optional :epoch_id, :message, 15, "event_store.client.
|
97
|
+
optional :epoch_id, :message, 15, "event_store.client.UUID"
|
97
98
|
optional :node_priority, :int32, 16
|
98
99
|
optional :is_read_only_replica, :bool, 17
|
99
100
|
optional :advertise_host_to_client_as, :string, 18
|
@@ -118,6 +119,80 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
118
119
|
value :ReadOnlyReplica, 14
|
119
120
|
value :ResigningLeader, 15
|
120
121
|
end
|
122
|
+
add_message "event_store.cluster.ReplicaLogWrite" do
|
123
|
+
optional :log_position, :int64, 1
|
124
|
+
optional :replica_id, :bytes, 2
|
125
|
+
end
|
126
|
+
add_message "event_store.cluster.ReplicatedTo" do
|
127
|
+
optional :log_position, :int64, 1
|
128
|
+
end
|
129
|
+
add_message "event_store.cluster.Epoch" do
|
130
|
+
optional :epoch_position, :int64, 1
|
131
|
+
optional :epoch_number, :int32, 2
|
132
|
+
optional :epoch_id, :bytes, 3
|
133
|
+
end
|
134
|
+
add_message "event_store.cluster.SubscribeReplica" do
|
135
|
+
optional :log_position, :int64, 1
|
136
|
+
optional :chunk_id, :bytes, 2
|
137
|
+
repeated :LastEpochs, :message, 3, "event_store.cluster.Epoch"
|
138
|
+
optional :ip, :bytes, 4
|
139
|
+
optional :port, :int32, 5
|
140
|
+
optional :leader_id, :bytes, 6
|
141
|
+
optional :subscription_id, :bytes, 7
|
142
|
+
optional :is_promotable, :bool, 8
|
143
|
+
optional :version, :int32, 9
|
144
|
+
end
|
145
|
+
add_message "event_store.cluster.ReplicaSubscriptionRetry" do
|
146
|
+
optional :leader_id, :bytes, 1
|
147
|
+
optional :subscription_id, :bytes, 2
|
148
|
+
end
|
149
|
+
add_message "event_store.cluster.ReplicaSubscribed" do
|
150
|
+
optional :leader_id, :bytes, 1
|
151
|
+
optional :subscription_id, :bytes, 2
|
152
|
+
optional :subscription_position, :int64, 3
|
153
|
+
end
|
154
|
+
add_message "event_store.cluster.ReplicaLogPositionAck" do
|
155
|
+
optional :subscription_id, :bytes, 1
|
156
|
+
optional :replication_log_position, :int64, 2
|
157
|
+
optional :writer_log_position, :int64, 3
|
158
|
+
end
|
159
|
+
add_message "event_store.cluster.CreateChunk" do
|
160
|
+
optional :leader_id, :bytes, 1
|
161
|
+
optional :subscription_id, :bytes, 2
|
162
|
+
optional :chunk_header_bytes, :bytes, 3
|
163
|
+
optional :file_size, :int32, 4
|
164
|
+
optional :is_completed_chunk, :bool, 5
|
165
|
+
end
|
166
|
+
add_message "event_store.cluster.RawChunkBulk" do
|
167
|
+
optional :leader_id, :bytes, 1
|
168
|
+
optional :subscription_id, :bytes, 2
|
169
|
+
optional :chunk_start_number, :int32, 3
|
170
|
+
optional :chunk_end_number, :int32, 4
|
171
|
+
optional :raw_position, :int32, 5
|
172
|
+
optional :raw_bytes, :bytes, 6
|
173
|
+
optional :complete_chunk, :bool, 7
|
174
|
+
end
|
175
|
+
add_message "event_store.cluster.DataChunkBulk" do
|
176
|
+
optional :leader_id, :bytes, 1
|
177
|
+
optional :subscription_id, :bytes, 2
|
178
|
+
optional :chunk_start_number, :int32, 3
|
179
|
+
optional :chunk_end_number, :int32, 4
|
180
|
+
optional :subscription_position, :int64, 5
|
181
|
+
optional :data_bytes, :bytes, 6
|
182
|
+
optional :complete_chunk, :bool, 7
|
183
|
+
end
|
184
|
+
add_message "event_store.cluster.FollowerAssignment" do
|
185
|
+
optional :leader_id, :bytes, 1
|
186
|
+
optional :subscription_id, :bytes, 2
|
187
|
+
end
|
188
|
+
add_message "event_store.cluster.CloneAssignment" do
|
189
|
+
optional :leader_id, :bytes, 1
|
190
|
+
optional :subscription_id, :bytes, 2
|
191
|
+
end
|
192
|
+
add_message "event_store.cluster.DropSubscription" do
|
193
|
+
optional :leader_id, :bytes, 1
|
194
|
+
optional :subscription_id, :bytes, 2
|
195
|
+
end
|
121
196
|
end
|
122
197
|
end
|
123
198
|
|
@@ -136,5 +211,18 @@ module EventStore
|
|
136
211
|
EndPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.EndPoint").msgclass
|
137
212
|
MemberInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.MemberInfo").msgclass
|
138
213
|
MemberInfo::VNodeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.MemberInfo.VNodeState").enummodule
|
214
|
+
ReplicaLogWrite = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.ReplicaLogWrite").msgclass
|
215
|
+
ReplicatedTo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.ReplicatedTo").msgclass
|
216
|
+
Epoch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.Epoch").msgclass
|
217
|
+
SubscribeReplica = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.SubscribeReplica").msgclass
|
218
|
+
ReplicaSubscriptionRetry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.ReplicaSubscriptionRetry").msgclass
|
219
|
+
ReplicaSubscribed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.ReplicaSubscribed").msgclass
|
220
|
+
ReplicaLogPositionAck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.ReplicaLogPositionAck").msgclass
|
221
|
+
CreateChunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.CreateChunk").msgclass
|
222
|
+
RawChunkBulk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.RawChunkBulk").msgclass
|
223
|
+
DataChunkBulk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.DataChunkBulk").msgclass
|
224
|
+
FollowerAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.FollowerAssignment").msgclass
|
225
|
+
CloneAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.CloneAssignment").msgclass
|
226
|
+
DropSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.cluster.DropSubscription").msgclass
|
139
227
|
end
|
140
228
|
end
|
@@ -2,21 +2,21 @@
|
|
2
2
|
# Source: cluster.proto for package 'event_store.cluster'
|
3
3
|
|
4
4
|
require 'grpc'
|
5
|
-
|
5
|
+
require_relative 'cluster_pb'
|
6
6
|
|
7
7
|
module EventStore
|
8
8
|
module Cluster
|
9
9
|
module Gossip
|
10
10
|
class Service
|
11
11
|
|
12
|
-
include GRPC::GenericService
|
12
|
+
include ::GRPC::GenericService
|
13
13
|
|
14
14
|
self.marshal_class_method = :encode
|
15
15
|
self.unmarshal_class_method = :decode
|
16
16
|
self.service_name = 'event_store.cluster.Gossip'
|
17
17
|
|
18
18
|
rpc :Update, ::EventStore::Cluster::GossipRequest, ::EventStore::Cluster::ClusterInfo
|
19
|
-
rpc :Read, ::EventStore::Client::
|
19
|
+
rpc :Read, ::EventStore::Client::Empty, ::EventStore::Cluster::ClusterInfo
|
20
20
|
end
|
21
21
|
|
22
22
|
Stub = Service.rpc_stub_class
|
@@ -24,20 +24,20 @@ module EventStore
|
|
24
24
|
module Elections
|
25
25
|
class Service
|
26
26
|
|
27
|
-
include GRPC::GenericService
|
27
|
+
include ::GRPC::GenericService
|
28
28
|
|
29
29
|
self.marshal_class_method = :encode
|
30
30
|
self.unmarshal_class_method = :decode
|
31
31
|
self.service_name = 'event_store.cluster.Elections'
|
32
32
|
|
33
|
-
rpc :ViewChange, ::EventStore::Cluster::ViewChangeRequest, ::EventStore::Client::
|
34
|
-
rpc :ViewChangeProof, ::EventStore::Cluster::ViewChangeProofRequest, ::EventStore::Client::
|
35
|
-
rpc :Prepare, ::EventStore::Cluster::PrepareRequest, ::EventStore::Client::
|
36
|
-
rpc :PrepareOk, ::EventStore::Cluster::PrepareOkRequest, ::EventStore::Client::
|
37
|
-
rpc :Proposal, ::EventStore::Cluster::ProposalRequest, ::EventStore::Client::
|
38
|
-
rpc :Accept, ::EventStore::Cluster::AcceptRequest, ::EventStore::Client::
|
39
|
-
rpc :LeaderIsResigning, ::EventStore::Cluster::LeaderIsResigningRequest, ::EventStore::Client::
|
40
|
-
rpc :LeaderIsResigningOk, ::EventStore::Cluster::LeaderIsResigningOkRequest, ::EventStore::Client::
|
33
|
+
rpc :ViewChange, ::EventStore::Cluster::ViewChangeRequest, ::EventStore::Client::Empty
|
34
|
+
rpc :ViewChangeProof, ::EventStore::Cluster::ViewChangeProofRequest, ::EventStore::Client::Empty
|
35
|
+
rpc :Prepare, ::EventStore::Cluster::PrepareRequest, ::EventStore::Client::Empty
|
36
|
+
rpc :PrepareOk, ::EventStore::Cluster::PrepareOkRequest, ::EventStore::Client::Empty
|
37
|
+
rpc :Proposal, ::EventStore::Cluster::ProposalRequest, ::EventStore::Client::Empty
|
38
|
+
rpc :Accept, ::EventStore::Cluster::AcceptRequest, ::EventStore::Client::Empty
|
39
|
+
rpc :LeaderIsResigning, ::EventStore::Cluster::LeaderIsResigningRequest, ::EventStore::Client::Empty
|
40
|
+
rpc :LeaderIsResigningOk, ::EventStore::Cluster::LeaderIsResigningOkRequest, ::EventStore::Client::Empty
|
41
41
|
end
|
42
42
|
|
43
43
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: code.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("code.proto", :syntax => :proto3) do
|
8
|
+
add_enum "google.rpc.Code" do
|
9
|
+
value :OK, 0
|
10
|
+
value :CANCELLED, 1
|
11
|
+
value :UNKNOWN, 2
|
12
|
+
value :INVALID_ARGUMENT, 3
|
13
|
+
value :DEADLINE_EXCEEDED, 4
|
14
|
+
value :NOT_FOUND, 5
|
15
|
+
value :ALREADY_EXISTS, 6
|
16
|
+
value :PERMISSION_DENIED, 7
|
17
|
+
value :UNAUTHENTICATED, 16
|
18
|
+
value :RESOURCE_EXHAUSTED, 8
|
19
|
+
value :FAILED_PRECONDITION, 9
|
20
|
+
value :ABORTED, 10
|
21
|
+
value :OUT_OF_RANGE, 11
|
22
|
+
value :UNIMPLEMENTED, 12
|
23
|
+
value :INTERNAL, 13
|
24
|
+
value :UNAVAILABLE, 14
|
25
|
+
value :DATA_LOSS, 15
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Rpc
|
32
|
+
Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Code").enummodule
|
33
|
+
end
|
34
|
+
end
|
@@ -3,7 +3,8 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
|
6
|
+
require_relative 'shared_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("gossip.proto", :syntax => :proto3) do
|
9
10
|
add_message "event_store.client.gossip.ClusterInfo" do
|
@@ -14,7 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
15
|
optional :port, :uint32, 2
|
15
16
|
end
|
16
17
|
add_message "event_store.client.gossip.MemberInfo" do
|
17
|
-
optional :instance_id, :message, 1, "event_store.client.
|
18
|
+
optional :instance_id, :message, 1, "event_store.client.UUID"
|
18
19
|
optional :time_stamp, :int64, 2
|
19
20
|
optional :state, :enum, 3, "event_store.client.gossip.MemberInfo.VNodeState"
|
20
21
|
optional :is_alive, :bool, 4
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Source: gossip.proto for package 'event_store.client.gossip'
|
3
3
|
|
4
4
|
require 'grpc'
|
5
|
-
|
5
|
+
require_relative 'gossip_pb'
|
6
6
|
|
7
7
|
module EventStore
|
8
8
|
module Client
|
@@ -10,13 +10,13 @@ module EventStore
|
|
10
10
|
module Gossip
|
11
11
|
class Service
|
12
12
|
|
13
|
-
include GRPC::GenericService
|
13
|
+
include ::GRPC::GenericService
|
14
14
|
|
15
15
|
self.marshal_class_method = :encode
|
16
16
|
self.unmarshal_class_method = :decode
|
17
17
|
self.service_name = 'event_store.client.gossip.Gossip'
|
18
18
|
|
19
|
-
rpc :Read, ::EventStore::Client::
|
19
|
+
rpc :Read, ::EventStore::Client::Empty, ::EventStore::Client::Gossip::ClusterInfo
|
20
20
|
end
|
21
21
|
|
22
22
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: monitoring.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("monitoring.proto", :syntax => :proto3) do
|
8
|
+
add_message "event_store.client.monitoring.StatsReq" do
|
9
|
+
optional :use_metadata, :bool, 1
|
10
|
+
optional :refresh_time_period_in_ms, :uint64, 4
|
11
|
+
end
|
12
|
+
add_message "event_store.client.monitoring.StatsResp" do
|
13
|
+
map :stats, :string, :string, 1
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module EventStore
|
19
|
+
module Client
|
20
|
+
module Monitoring
|
21
|
+
StatsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.monitoring.StatsReq").msgclass
|
22
|
+
StatsResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.monitoring.StatsResp").msgclass
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: monitoring.proto for package 'event_store.client.monitoring'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require_relative 'monitoring_pb'
|
6
|
+
|
7
|
+
module EventStore
|
8
|
+
module Client
|
9
|
+
module Monitoring
|
10
|
+
module Monitoring
|
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 = 'event_store.client.monitoring.Monitoring'
|
18
|
+
|
19
|
+
rpc :Stats, ::EventStore::Client::Monitoring::StatsReq, stream(::EventStore::Client::Monitoring::StatsResp)
|
20
|
+
end
|
21
|
+
|
22
|
+
Stub = Service.rpc_stub_class
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -3,7 +3,8 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
|
6
|
+
require_relative 'shared_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("operations.proto", :syntax => :proto3) do
|
9
10
|
add_message "event_store.client.operations.StartScavengeReq" do
|
@@ -2,14 +2,15 @@
|
|
2
2
|
# Source: operations.proto for package 'event_store.client.operations'
|
3
3
|
|
4
4
|
require 'grpc'
|
5
|
-
|
5
|
+
require_relative 'operations_pb'
|
6
6
|
|
7
7
|
module EventStore
|
8
8
|
module Client
|
9
9
|
module Operations
|
10
10
|
module Operations
|
11
11
|
class Service
|
12
|
-
|
12
|
+
|
13
|
+
include ::GRPC::GenericService
|
13
14
|
|
14
15
|
self.marshal_class_method = :encode
|
15
16
|
self.unmarshal_class_method = :decode
|
@@ -17,11 +18,11 @@ module EventStore
|
|
17
18
|
|
18
19
|
rpc :StartScavenge, ::EventStore::Client::Operations::StartScavengeReq, ::EventStore::Client::Operations::ScavengeResp
|
19
20
|
rpc :StopScavenge, ::EventStore::Client::Operations::StopScavengeReq, ::EventStore::Client::Operations::ScavengeResp
|
20
|
-
rpc :Shutdown, ::EventStore::Client::
|
21
|
-
rpc :MergeIndexes, ::EventStore::Client::
|
22
|
-
rpc :ResignNode, ::EventStore::Client::
|
23
|
-
rpc :SetNodePriority, ::EventStore::Client::Operations::SetNodePriorityReq, ::EventStore::Client::
|
24
|
-
rpc :RestartPersistentSubscriptions, ::EventStore::Client::
|
21
|
+
rpc :Shutdown, ::EventStore::Client::Empty, ::EventStore::Client::Empty
|
22
|
+
rpc :MergeIndexes, ::EventStore::Client::Empty, ::EventStore::Client::Empty
|
23
|
+
rpc :ResignNode, ::EventStore::Client::Empty, ::EventStore::Client::Empty
|
24
|
+
rpc :SetNodePriority, ::EventStore::Client::Operations::SetNodePriorityReq, ::EventStore::Client::Empty
|
25
|
+
rpc :RestartPersistentSubscriptions, ::EventStore::Client::Empty, ::EventStore::Client::Empty
|
25
26
|
end
|
26
27
|
|
27
28
|
Stub = Service.rpc_stub_class
|