event_store_client 0.2.7 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -37
- data/lib/event_store_client.rb +0 -2
- data/lib/event_store_client/adapters/grpc.rb +21 -0
- data/lib/event_store_client/adapters/grpc/Protos/cluster.proto +149 -0
- data/lib/event_store_client/adapters/grpc/Protos/gossip.proto +44 -0
- data/lib/event_store_client/adapters/grpc/Protos/operations.proto +45 -0
- data/lib/event_store_client/adapters/grpc/Protos/persistent.proto +180 -0
- data/lib/event_store_client/adapters/grpc/Protos/projections.proto +174 -0
- data/lib/event_store_client/adapters/grpc/Protos/shared.proto +22 -0
- data/lib/event_store_client/adapters/grpc/Protos/streams.proto +242 -0
- data/lib/event_store_client/adapters/grpc/Protos/users.proto +119 -0
- data/lib/event_store_client/adapters/grpc/client.rb +119 -0
- data/lib/event_store_client/adapters/grpc/command_registrar.rb +32 -0
- data/lib/event_store_client/adapters/grpc/commands/command.rb +43 -0
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/create.rb +46 -0
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/delete.rb +34 -0
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/read.rb +65 -0
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/settings_schema.rb +38 -0
- data/lib/event_store_client/adapters/grpc/commands/persistent_subscriptions/update.rb +48 -0
- data/lib/event_store_client/adapters/grpc/commands/projections/create.rb +45 -0
- data/lib/event_store_client/adapters/grpc/commands/projections/delete.rb +34 -0
- data/lib/event_store_client/adapters/grpc/commands/projections/update.rb +42 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/append.rb +61 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/delete.rb +35 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/link_to.rb +61 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/read.rb +80 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/read_all.rb +43 -0
- data/lib/event_store_client/adapters/grpc/commands/streams/tombstone.rb +35 -0
- data/lib/event_store_client/adapters/grpc/connection.rb +50 -0
- data/lib/event_store_client/adapters/grpc/generated/cluster_pb.rb +140 -0
- data/lib/event_store_client/adapters/grpc/generated/cluster_services_pb.rb +46 -0
- data/lib/event_store_client/adapters/grpc/generated/gossip_pb.rb +53 -0
- data/lib/event_store_client/adapters/grpc/generated/gossip_services_pb.rb +26 -0
- data/lib/event_store_client/adapters/grpc/generated/operations_pb.rb +49 -0
- data/lib/event_store_client/adapters/grpc/generated/operations_services_pb.rb +31 -0
- data/lib/event_store_client/adapters/grpc/generated/persistent_pb.rb +213 -0
- data/lib/event_store_client/adapters/grpc/generated/persistent_services_pb.rb +29 -0
- data/lib/event_store_client/adapters/grpc/generated/projections_pb.rb +193 -0
- data/lib/event_store_client/adapters/grpc/generated/projections_services_pb.rb +34 -0
- data/lib/event_store_client/adapters/grpc/generated/shared_pb.rb +35 -0
- data/lib/event_store_client/adapters/grpc/generated/streams_pb.rb +283 -0
- data/lib/event_store_client/adapters/grpc/generated/streams_services_pb.rb +29 -0
- data/lib/event_store_client/adapters/grpc/generated/users_pb.rb +126 -0
- data/lib/event_store_client/adapters/grpc/generated/users_services_pb.rb +33 -0
- data/lib/event_store_client/adapters/http.rb +16 -0
- data/lib/event_store_client/adapters/http/README.md +16 -0
- data/lib/event_store_client/adapters/http/client.rb +160 -0
- data/lib/event_store_client/adapters/http/commands/command.rb +27 -0
- data/lib/event_store_client/adapters/http/commands/persistent_subscriptions/ack.rb +15 -0
- data/lib/event_store_client/adapters/http/commands/persistent_subscriptions/create.rb +31 -0
- data/lib/event_store_client/adapters/http/commands/persistent_subscriptions/read.rb +57 -0
- data/lib/event_store_client/adapters/http/commands/projections/create.rb +30 -0
- data/lib/event_store_client/adapters/http/commands/streams/append.rb +49 -0
- data/lib/event_store_client/adapters/http/commands/streams/delete.rb +16 -0
- data/lib/event_store_client/adapters/http/commands/streams/link_to.rb +49 -0
- data/lib/event_store_client/adapters/http/commands/streams/read.rb +53 -0
- data/lib/event_store_client/adapters/http/commands/streams/tombstone.rb +17 -0
- data/lib/event_store_client/adapters/http/connection.rb +46 -0
- data/lib/event_store_client/adapters/http/request_method.rb +28 -0
- data/lib/event_store_client/adapters/in_memory.rb +142 -0
- data/lib/event_store_client/broker.rb +16 -5
- data/lib/event_store_client/client.rb +18 -72
- data/lib/event_store_client/configuration.rb +28 -14
- data/lib/event_store_client/data_decryptor.rb +13 -8
- data/lib/event_store_client/data_encryptor.rb +7 -6
- data/lib/event_store_client/deserialized_event.rb +10 -1
- data/lib/event_store_client/event.rb +2 -2
- data/lib/event_store_client/mapper/default.rb +0 -1
- data/lib/event_store_client/serializer/json.rb +2 -0
- data/lib/event_store_client/subscriptions.rb +4 -13
- data/lib/event_store_client/types.rb +3 -1
- data/lib/event_store_client/value_objects/read_direction.rb +43 -0
- data/lib/event_store_client/version.rb +1 -1
- metadata +97 -15
- data/lib/event_store_client/store_adapter.rb +0 -10
- data/lib/event_store_client/store_adapter/api/client.rb +0 -224
- data/lib/event_store_client/store_adapter/api/connection.rb +0 -43
- data/lib/event_store_client/store_adapter/api/request_method.rb +0 -30
- data/lib/event_store_client/store_adapter/in_memory.rb +0 -160
@@ -0,0 +1,29 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: persistent.proto for package 'event_store.client.persistent_subscriptions'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
|
6
|
+
require 'event_store_client/adapters/grpc/generated/persistent_pb'
|
7
|
+
|
8
|
+
module EventStore
|
9
|
+
module Client
|
10
|
+
module PersistentSubscriptions
|
11
|
+
module PersistentSubscriptions
|
12
|
+
class Service
|
13
|
+
include GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'event_store.client.persistent_subscriptions.PersistentSubscriptions'
|
18
|
+
|
19
|
+
rpc :Create, ::EventStore::Client::PersistentSubscriptions::CreateReq, ::EventStore::Client::PersistentSubscriptions::CreateResp
|
20
|
+
rpc :Update, ::EventStore::Client::PersistentSubscriptions::UpdateReq, ::EventStore::Client::PersistentSubscriptions::UpdateResp
|
21
|
+
rpc :Delete, ::EventStore::Client::PersistentSubscriptions::DeleteReq, ::EventStore::Client::PersistentSubscriptions::DeleteResp
|
22
|
+
rpc :Read, stream(::EventStore::Client::PersistentSubscriptions::ReadReq), stream(::EventStore::Client::PersistentSubscriptions::ReadResp)
|
23
|
+
end
|
24
|
+
|
25
|
+
Stub = Service.rpc_stub_class
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,193 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: projections.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/struct_pb'
|
7
|
+
require 'event_store_client/adapters/grpc/generated/shared_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("projections.proto", :syntax => :proto3) do
|
11
|
+
# Create projection request
|
12
|
+
#
|
13
|
+
add_message "event_store.client.projections.CreateReq" do
|
14
|
+
optional :options, :message, 1, "event_store.client.projections.CreateReq.Options"
|
15
|
+
end
|
16
|
+
add_message "event_store.client.projections.CreateReq.Options" do
|
17
|
+
optional :query, :string, 4
|
18
|
+
oneof :mode do
|
19
|
+
optional :one_time, :message, 1, "event_store.client.shared.Empty"
|
20
|
+
optional :transient, :message, 2, "event_store.client.projections.CreateReq.Options.Transient"
|
21
|
+
optional :continuous, :message, 3, "event_store.client.projections.CreateReq.Options.Continuous"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
add_message "event_store.client.projections.CreateReq.Options.Transient" do
|
25
|
+
optional :name, :string, 1
|
26
|
+
end
|
27
|
+
add_message "event_store.client.projections.CreateReq.Options.Continuous" do
|
28
|
+
optional :name, :string, 1
|
29
|
+
optional :track_emitted_streams, :bool, 2
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create projection response
|
33
|
+
#
|
34
|
+
add_message "event_store.client.projections.CreateResp" do
|
35
|
+
end
|
36
|
+
|
37
|
+
# Update projection request
|
38
|
+
#
|
39
|
+
add_message "event_store.client.projections.UpdateReq" do
|
40
|
+
optional :options, :message, 1, "event_store.client.projections.UpdateReq.Options"
|
41
|
+
end
|
42
|
+
add_message "event_store.client.projections.UpdateReq.Options" do
|
43
|
+
optional :name, :string, 1
|
44
|
+
optional :query, :string, 2
|
45
|
+
oneof :emit_option do
|
46
|
+
optional :emit_enabled, :bool, 3
|
47
|
+
optional :no_emit_options, :message, 4, "event_store.client.shared.Empty"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Update projection response
|
52
|
+
#
|
53
|
+
add_message "event_store.client.projections.UpdateResp" do
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
add_message "event_store.client.projections.DeleteReq" do
|
58
|
+
optional :options, :message, 1, "event_store.client.projections.DeleteReq.Options"
|
59
|
+
end
|
60
|
+
add_message "event_store.client.projections.DeleteReq.Options" do
|
61
|
+
optional :name, :string, 1
|
62
|
+
optional :delete_emitted_streams, :bool, 2
|
63
|
+
optional :delete_state_stream, :bool, 3
|
64
|
+
optional :delete_checkpoint_stream, :bool, 4
|
65
|
+
end
|
66
|
+
|
67
|
+
# Delete projection response
|
68
|
+
#
|
69
|
+
add_message "event_store.client.projections.DeleteResp" do
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
add_message "event_store.client.projections.StatisticsReq" do
|
74
|
+
optional :options, :message, 1, "event_store.client.projections.StatisticsReq.Options"
|
75
|
+
end
|
76
|
+
add_message "event_store.client.projections.StatisticsReq.Options" do
|
77
|
+
oneof :mode do
|
78
|
+
optional :name, :string, 1
|
79
|
+
optional :all, :message, 2, "event_store.client.shared.Empty"
|
80
|
+
optional :transient, :message, 3, "event_store.client.shared.Empty"
|
81
|
+
optional :continuous, :message, 4, "event_store.client.shared.Empty"
|
82
|
+
optional :one_time, :message, 5, "event_store.client.shared.Empty"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
add_message "event_store.client.projections.StatisticsResp" do
|
86
|
+
optional :details, :message, 1, "event_store.client.projections.StatisticsResp.Details"
|
87
|
+
end
|
88
|
+
add_message "event_store.client.projections.StatisticsResp.Details" do
|
89
|
+
optional :coreProcessingTime, :int64, 1
|
90
|
+
optional :version, :int64, 2
|
91
|
+
optional :epoch, :int64, 3
|
92
|
+
optional :effectiveName, :string, 4
|
93
|
+
optional :writesInProgress, :int32, 5
|
94
|
+
optional :readsInProgress, :int32, 6
|
95
|
+
optional :partitionsCached, :int32, 7
|
96
|
+
optional :status, :string, 8
|
97
|
+
optional :stateReason, :string, 9
|
98
|
+
optional :name, :string, 10
|
99
|
+
optional :mode, :string, 11
|
100
|
+
optional :position, :string, 12
|
101
|
+
optional :progress, :float, 13
|
102
|
+
optional :lastCheckpoint, :string, 14
|
103
|
+
optional :eventsProcessedAfterRestart, :int64, 15
|
104
|
+
optional :checkpointStatus, :string, 16
|
105
|
+
optional :bufferedEvents, :int64, 17
|
106
|
+
optional :writePendingEventsBeforeCheckpoint, :int32, 18
|
107
|
+
optional :writePendingEventsAfterCheckpoint, :int32, 19
|
108
|
+
end
|
109
|
+
add_message "event_store.client.projections.StateReq" do
|
110
|
+
optional :options, :message, 1, "event_store.client.projections.StateReq.Options"
|
111
|
+
end
|
112
|
+
add_message "event_store.client.projections.StateReq.Options" do
|
113
|
+
optional :name, :string, 1
|
114
|
+
optional :partition, :string, 2
|
115
|
+
end
|
116
|
+
add_message "event_store.client.projections.StateResp" do
|
117
|
+
optional :state, :message, 1, "google.protobuf.Value"
|
118
|
+
end
|
119
|
+
add_message "event_store.client.projections.ResultReq" do
|
120
|
+
optional :options, :message, 1, "event_store.client.projections.ResultReq.Options"
|
121
|
+
end
|
122
|
+
add_message "event_store.client.projections.ResultReq.Options" do
|
123
|
+
optional :name, :string, 1
|
124
|
+
optional :partition, :string, 2
|
125
|
+
end
|
126
|
+
add_message "event_store.client.projections.ResultResp" do
|
127
|
+
optional :result, :message, 1, "google.protobuf.Value"
|
128
|
+
end
|
129
|
+
add_message "event_store.client.projections.ResetReq" do
|
130
|
+
optional :options, :message, 1, "event_store.client.projections.ResetReq.Options"
|
131
|
+
end
|
132
|
+
add_message "event_store.client.projections.ResetReq.Options" do
|
133
|
+
optional :name, :string, 1
|
134
|
+
optional :write_checkpoint, :bool, 2
|
135
|
+
end
|
136
|
+
add_message "event_store.client.projections.ResetResp" do
|
137
|
+
end
|
138
|
+
add_message "event_store.client.projections.EnableReq" do
|
139
|
+
optional :options, :message, 1, "event_store.client.projections.EnableReq.Options"
|
140
|
+
end
|
141
|
+
add_message "event_store.client.projections.EnableReq.Options" do
|
142
|
+
optional :name, :string, 1
|
143
|
+
end
|
144
|
+
add_message "event_store.client.projections.EnableResp" do
|
145
|
+
end
|
146
|
+
add_message "event_store.client.projections.DisableReq" do
|
147
|
+
optional :options, :message, 1, "event_store.client.projections.DisableReq.Options"
|
148
|
+
end
|
149
|
+
add_message "event_store.client.projections.DisableReq.Options" do
|
150
|
+
optional :name, :string, 1
|
151
|
+
optional :write_checkpoint, :bool, 2
|
152
|
+
end
|
153
|
+
add_message "event_store.client.projections.DisableResp" do
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
module EventStore
|
159
|
+
module Client
|
160
|
+
module Projections
|
161
|
+
CreateReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.CreateReq").msgclass
|
162
|
+
CreateReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.CreateReq.Options").msgclass
|
163
|
+
CreateReq::Options::Transient = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.CreateReq.Options.Transient").msgclass
|
164
|
+
CreateReq::Options::Continuous = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.CreateReq.Options.Continuous").msgclass
|
165
|
+
CreateResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.CreateResp").msgclass
|
166
|
+
UpdateReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.UpdateReq").msgclass
|
167
|
+
UpdateReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.UpdateReq.Options").msgclass
|
168
|
+
UpdateResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.UpdateResp").msgclass
|
169
|
+
DeleteReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.DeleteReq").msgclass
|
170
|
+
DeleteReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.DeleteReq.Options").msgclass
|
171
|
+
DeleteResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.DeleteResp").msgclass
|
172
|
+
StatisticsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.StatisticsReq").msgclass
|
173
|
+
StatisticsReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.StatisticsReq.Options").msgclass
|
174
|
+
StatisticsResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.StatisticsResp").msgclass
|
175
|
+
StatisticsResp::Details = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.StatisticsResp.Details").msgclass
|
176
|
+
StateReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.StateReq").msgclass
|
177
|
+
StateReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.StateReq.Options").msgclass
|
178
|
+
StateResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.StateResp").msgclass
|
179
|
+
ResultReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.ResultReq").msgclass
|
180
|
+
ResultReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.ResultReq.Options").msgclass
|
181
|
+
ResultResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.ResultResp").msgclass
|
182
|
+
ResetReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.ResetReq").msgclass
|
183
|
+
ResetReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.ResetReq.Options").msgclass
|
184
|
+
ResetResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.ResetResp").msgclass
|
185
|
+
EnableReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.EnableReq").msgclass
|
186
|
+
EnableReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.EnableReq.Options").msgclass
|
187
|
+
EnableResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.EnableResp").msgclass
|
188
|
+
DisableReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.DisableReq").msgclass
|
189
|
+
DisableReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.DisableReq.Options").msgclass
|
190
|
+
DisableResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.projections.DisableResp").msgclass
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: projections.proto for package 'event_store.client.projections'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'event_store_client/adapters/grpc/generated/projections_pb'
|
6
|
+
|
7
|
+
module EventStore
|
8
|
+
module Client
|
9
|
+
module Projections
|
10
|
+
module Projections
|
11
|
+
class Service
|
12
|
+
include GRPC::GenericService
|
13
|
+
|
14
|
+
self.marshal_class_method = :encode
|
15
|
+
self.unmarshal_class_method = :decode
|
16
|
+
self.service_name = 'event_store.client.projections.Projections'
|
17
|
+
|
18
|
+
rpc :Create, ::EventStore::Client::Projections::CreateReq, ::EventStore::Client::Projections::CreateResp
|
19
|
+
rpc :Update, ::EventStore::Client::Projections::UpdateReq, ::EventStore::Client::Projections::UpdateResp
|
20
|
+
rpc :Delete, ::EventStore::Client::Projections::DeleteReq, ::EventStore::Client::Projections::DeleteResp
|
21
|
+
rpc :Statistics, ::EventStore::Client::Projections::StatisticsReq, stream(::EventStore::Client::Projections::StatisticsResp)
|
22
|
+
rpc :Disable, ::EventStore::Client::Projections::DisableReq, ::EventStore::Client::Projections::DisableResp
|
23
|
+
rpc :Enable, ::EventStore::Client::Projections::EnableReq, ::EventStore::Client::Projections::EnableResp
|
24
|
+
rpc :Reset, ::EventStore::Client::Projections::ResetReq, ::EventStore::Client::Projections::ResetResp
|
25
|
+
rpc :State, ::EventStore::Client::Projections::StateReq, ::EventStore::Client::Projections::StateResp
|
26
|
+
rpc :Result, ::EventStore::Client::Projections::ResultReq, ::EventStore::Client::Projections::ResultResp
|
27
|
+
rpc :RestartSubsystem, ::EventStore::Client::Shared::Empty, ::EventStore::Client::Shared::Empty
|
28
|
+
end
|
29
|
+
|
30
|
+
Stub = Service.rpc_stub_class
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: shared.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("shared.proto", :syntax => :proto3) do
|
8
|
+
add_message "event_store.client.shared.UUID" do
|
9
|
+
oneof :value do
|
10
|
+
optional :structured, :message, 1, "event_store.client.shared.UUID.Structured"
|
11
|
+
optional :string, :string, 2
|
12
|
+
end
|
13
|
+
end
|
14
|
+
add_message "event_store.client.shared.UUID.Structured" do
|
15
|
+
optional :most_significant_bits, :int64, 1
|
16
|
+
optional :least_significant_bits, :int64, 2
|
17
|
+
end
|
18
|
+
add_message "event_store.client.shared.Empty" do
|
19
|
+
end
|
20
|
+
add_message "event_store.client.shared.StreamIdentifier" do
|
21
|
+
optional :streamName, :bytes, 3
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module EventStore
|
27
|
+
module Client
|
28
|
+
module Shared
|
29
|
+
UUID = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.shared.UUID").msgclass
|
30
|
+
UUID::Structured = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.shared.UUID.Structured").msgclass
|
31
|
+
Empty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.shared.Empty").msgclass
|
32
|
+
StreamIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.shared.StreamIdentifier").msgclass
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,283 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: streams.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'event_store_client/adapters/grpc/generated/shared_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("streams.proto", :syntax => :proto3) do
|
10
|
+
### Read Request definition
|
11
|
+
#
|
12
|
+
add_message "event_store.client.streams.ReadReq" do
|
13
|
+
optional :options, :message, 1, "event_store.client.streams.ReadReq.Options"
|
14
|
+
end
|
15
|
+
add_message "event_store.client.streams.ReadReq.Options" do
|
16
|
+
optional :read_direction, :enum, 3, "event_store.client.streams.ReadReq.Options.ReadDirection"
|
17
|
+
optional :resolve_links, :bool, 4
|
18
|
+
optional :uuid_option, :message, 9, "event_store.client.streams.ReadReq.Options.UUIDOption"
|
19
|
+
oneof :stream_option do
|
20
|
+
optional :stream, :message, 1, "event_store.client.streams.ReadReq.Options.StreamOptions"
|
21
|
+
optional :all, :message, 2, "event_store.client.streams.ReadReq.Options.AllOptions"
|
22
|
+
end
|
23
|
+
oneof :count_option do
|
24
|
+
optional :count, :uint64, 5
|
25
|
+
optional :subscription, :message, 6, "event_store.client.streams.ReadReq.Options.SubscriptionOptions"
|
26
|
+
end
|
27
|
+
oneof :filter_option do
|
28
|
+
optional :filter, :message, 7, "event_store.client.streams.ReadReq.Options.FilterOptions"
|
29
|
+
optional :no_filter, :message, 8, "event_store.client.shared.Empty"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
add_message "event_store.client.streams.ReadReq.Options.StreamOptions" do
|
33
|
+
optional :stream_identifier, :message, 1, "event_store.client.shared.StreamIdentifier"
|
34
|
+
oneof :revision_option do
|
35
|
+
optional :revision, :uint64, 2
|
36
|
+
optional :start, :message, 3, "event_store.client.shared.Empty"
|
37
|
+
optional :end, :message, 4, "event_store.client.shared.Empty"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
add_message "event_store.client.streams.ReadReq.Options.AllOptions" do
|
41
|
+
oneof :all_option do
|
42
|
+
optional :position, :message, 1, "event_store.client.streams.ReadReq.Options.Position"
|
43
|
+
optional :start, :message, 2, "event_store.client.shared.Empty"
|
44
|
+
optional :end, :message, 3, "event_store.client.shared.Empty"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
add_message "event_store.client.streams.ReadReq.Options.SubscriptionOptions" do
|
48
|
+
end
|
49
|
+
add_message "event_store.client.streams.ReadReq.Options.Position" do
|
50
|
+
optional :commit_position, :uint64, 1
|
51
|
+
optional :prepare_position, :uint64, 2
|
52
|
+
end
|
53
|
+
add_message "event_store.client.streams.ReadReq.Options.FilterOptions" do
|
54
|
+
optional :checkpointIntervalMultiplier, :uint32, 5
|
55
|
+
oneof :filter do
|
56
|
+
optional :stream_identifier, :message, 1, "event_store.client.streams.ReadReq.Options.FilterOptions.Expression"
|
57
|
+
optional :event_type, :message, 2, "event_store.client.streams.ReadReq.Options.FilterOptions.Expression"
|
58
|
+
end
|
59
|
+
oneof :window do
|
60
|
+
optional :max, :uint32, 3
|
61
|
+
optional :count, :message, 4, "event_store.client.shared.Empty"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
add_message "event_store.client.streams.ReadReq.Options.FilterOptions.Expression" do
|
65
|
+
optional :regex, :string, 1
|
66
|
+
repeated :prefix, :string, 2
|
67
|
+
end
|
68
|
+
add_message "event_store.client.streams.ReadReq.Options.UUIDOption" do
|
69
|
+
oneof :content do
|
70
|
+
optional :structured, :message, 1, "event_store.client.shared.Empty"
|
71
|
+
optional :string, :message, 2, "event_store.client.shared.Empty"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
add_enum "event_store.client.streams.ReadReq.Options.ReadDirection" do
|
75
|
+
value :Forwards, 0
|
76
|
+
value :Backwards, 1
|
77
|
+
end
|
78
|
+
|
79
|
+
# Read Response definition
|
80
|
+
#
|
81
|
+
add_message "event_store.client.streams.ReadResp" do
|
82
|
+
oneof :content do
|
83
|
+
optional :event, :message, 1, "event_store.client.streams.ReadResp.ReadEvent"
|
84
|
+
optional :confirmation, :message, 2, "event_store.client.streams.ReadResp.SubscriptionConfirmation"
|
85
|
+
optional :checkpoint, :message, 3, "event_store.client.streams.ReadResp.Checkpoint"
|
86
|
+
optional :stream_not_found, :message, 4, "event_store.client.streams.ReadResp.StreamNotFound"
|
87
|
+
end
|
88
|
+
end
|
89
|
+
add_message "event_store.client.streams.ReadResp.ReadEvent" do
|
90
|
+
optional :event, :message, 1, "event_store.client.streams.ReadResp.ReadEvent.RecordedEvent"
|
91
|
+
optional :link, :message, 2, "event_store.client.streams.ReadResp.ReadEvent.RecordedEvent"
|
92
|
+
oneof :position do
|
93
|
+
optional :commit_position, :uint64, 3
|
94
|
+
optional :no_position, :message, 4, "event_store.client.shared.Empty"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
add_message "event_store.client.streams.ReadResp.ReadEvent.RecordedEvent" do
|
98
|
+
optional :id, :message, 1, "event_store.client.shared.UUID"
|
99
|
+
optional :stream_identifier, :message, 2, "event_store.client.shared.StreamIdentifier"
|
100
|
+
optional :stream_revision, :uint64, 3
|
101
|
+
optional :prepare_position, :uint64, 4
|
102
|
+
optional :commit_position, :uint64, 5
|
103
|
+
map :metadata, :string, :string, 6
|
104
|
+
optional :custom_metadata, :bytes, 7
|
105
|
+
optional :data, :bytes, 8
|
106
|
+
end
|
107
|
+
add_message "event_store.client.streams.ReadResp.SubscriptionConfirmation" do
|
108
|
+
optional :subscription_id, :string, 1
|
109
|
+
end
|
110
|
+
add_message "event_store.client.streams.ReadResp.Checkpoint" do
|
111
|
+
optional :commit_position, :uint64, 1
|
112
|
+
optional :prepare_position, :uint64, 2
|
113
|
+
end
|
114
|
+
add_message "event_store.client.streams.ReadResp.StreamNotFound" do
|
115
|
+
optional :stream_identifier, :message, 1, "event_store.client.shared.StreamIdentifier"
|
116
|
+
end
|
117
|
+
|
118
|
+
# Append to stream request
|
119
|
+
#
|
120
|
+
add_message "event_store.client.streams.AppendReq" do
|
121
|
+
oneof :content do
|
122
|
+
optional :options, :message, 1, "event_store.client.streams.AppendReq.Options"
|
123
|
+
optional :proposed_message, :message, 2, "event_store.client.streams.AppendReq.ProposedMessage"
|
124
|
+
end
|
125
|
+
end
|
126
|
+
# first send options message with info to which stream to append
|
127
|
+
# then send the proposed message to the last options request.
|
128
|
+
#
|
129
|
+
add_message "event_store.client.streams.AppendReq.Options" do
|
130
|
+
optional :stream_identifier, :message, 1, "event_store.client.shared.StreamIdentifier"
|
131
|
+
oneof :expected_stream_revision do
|
132
|
+
optional :revision, :uint64, 2
|
133
|
+
optional :no_stream, :message, 3, "event_store.client.shared.Empty"
|
134
|
+
optional :any, :message, 4, "event_store.client.shared.Empty"
|
135
|
+
optional :stream_exists, :message, 5, "event_store.client.shared.Empty"
|
136
|
+
end
|
137
|
+
end
|
138
|
+
add_message "event_store.client.streams.AppendReq.ProposedMessage" do
|
139
|
+
optional :id, :message, 1, "event_store.client.shared.UUID"
|
140
|
+
map :metadata, :string, :string, 2
|
141
|
+
optional :custom_metadata, :bytes, 3
|
142
|
+
optional :data, :bytes, 4
|
143
|
+
end
|
144
|
+
|
145
|
+
# Append to stream response
|
146
|
+
#
|
147
|
+
add_message "event_store.client.streams.AppendResp" do
|
148
|
+
oneof :result do
|
149
|
+
optional :success, :message, 1, "event_store.client.streams.AppendResp.Success"
|
150
|
+
optional :wrong_expected_version, :message, 2, "event_store.client.streams.AppendResp.WrongExpectedVersion"
|
151
|
+
end
|
152
|
+
end
|
153
|
+
add_message "event_store.client.streams.AppendResp.Position" do
|
154
|
+
optional :commit_position, :uint64, 1
|
155
|
+
optional :prepare_position, :uint64, 2
|
156
|
+
end
|
157
|
+
add_message "event_store.client.streams.AppendResp.Success" do
|
158
|
+
oneof :current_revision_option do
|
159
|
+
optional :current_revision, :uint64, 1
|
160
|
+
optional :no_stream, :message, 2, "event_store.client.shared.Empty"
|
161
|
+
end
|
162
|
+
oneof :position_option do
|
163
|
+
optional :position, :message, 3, "event_store.client.streams.AppendResp.Position"
|
164
|
+
optional :no_position, :message, 4, "event_store.client.shared.Empty"
|
165
|
+
end
|
166
|
+
end
|
167
|
+
add_message "event_store.client.streams.AppendResp.WrongExpectedVersion" do
|
168
|
+
oneof :current_revision_option_20_6_0 do
|
169
|
+
optional :current_revision_20_6_0, :uint64, 1
|
170
|
+
optional :no_stream_20_6_0, :message, 2, "event_store.client.shared.Empty"
|
171
|
+
end
|
172
|
+
oneof :expected_revision_option_20_6_0 do
|
173
|
+
optional :expected_revision_20_6_0, :uint64, 3
|
174
|
+
optional :any_20_6_0, :message, 4, "event_store.client.shared.Empty"
|
175
|
+
optional :stream_exists_20_6_0, :message, 5, "event_store.client.shared.Empty"
|
176
|
+
end
|
177
|
+
oneof :current_revision_option do
|
178
|
+
optional :current_revision, :uint64, 6
|
179
|
+
optional :current_no_stream, :message, 7, "event_store.client.shared.Empty"
|
180
|
+
end
|
181
|
+
oneof :expected_revision_option do
|
182
|
+
optional :expected_revision, :uint64, 8
|
183
|
+
optional :expected_any, :message, 9, "event_store.client.shared.Empty"
|
184
|
+
optional :expected_stream_exists, :message, 10, "event_store.client.shared.Empty"
|
185
|
+
optional :expected_no_stream, :message, 11, "event_store.client.shared.Empty"
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Delete stream request
|
190
|
+
#
|
191
|
+
add_message "event_store.client.streams.DeleteReq" do
|
192
|
+
optional :options, :message, 1, "event_store.client.streams.DeleteReq.Options"
|
193
|
+
end
|
194
|
+
add_message "event_store.client.streams.DeleteReq.Options" do
|
195
|
+
optional :stream_identifier, :message, 1, "event_store.client.shared.StreamIdentifier"
|
196
|
+
oneof :expected_stream_revision do
|
197
|
+
optional :revision, :uint64, 2
|
198
|
+
optional :no_stream, :message, 3, "event_store.client.shared.Empty"
|
199
|
+
optional :any, :message, 4, "event_store.client.shared.Empty"
|
200
|
+
optional :stream_exists, :message, 5, "event_store.client.shared.Empty"
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# Delete stream response
|
205
|
+
#
|
206
|
+
add_message "event_store.client.streams.DeleteResp" do
|
207
|
+
oneof :position_option do
|
208
|
+
optional :position, :message, 1, "event_store.client.streams.DeleteResp.Position"
|
209
|
+
optional :no_position, :message, 2, "event_store.client.shared.Empty"
|
210
|
+
end
|
211
|
+
end
|
212
|
+
add_message "event_store.client.streams.DeleteResp.Position" do
|
213
|
+
optional :commit_position, :uint64, 1
|
214
|
+
optional :prepare_position, :uint64, 2
|
215
|
+
end
|
216
|
+
|
217
|
+
# Tombstone stream request
|
218
|
+
#
|
219
|
+
add_message "event_store.client.streams.TombstoneReq" do
|
220
|
+
optional :options, :message, 1, "event_store.client.streams.TombstoneReq.Options"
|
221
|
+
end
|
222
|
+
add_message "event_store.client.streams.TombstoneReq.Options" do
|
223
|
+
optional :stream_identifier, :message, 1, "event_store.client.shared.StreamIdentifier"
|
224
|
+
oneof :expected_stream_revision do
|
225
|
+
optional :revision, :uint64, 2
|
226
|
+
optional :no_stream, :message, 3, "event_store.client.shared.Empty"
|
227
|
+
optional :any, :message, 4, "event_store.client.shared.Empty"
|
228
|
+
optional :stream_exists, :message, 5, "event_store.client.shared.Empty"
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# Tombstone stream response
|
233
|
+
#
|
234
|
+
add_message "event_store.client.streams.TombstoneResp" do
|
235
|
+
oneof :position_option do
|
236
|
+
optional :position, :message, 1, "event_store.client.streams.TombstoneResp.Position"
|
237
|
+
optional :no_position, :message, 2, "event_store.client.shared.Empty"
|
238
|
+
end
|
239
|
+
end
|
240
|
+
add_message "event_store.client.streams.TombstoneResp.Position" do
|
241
|
+
optional :commit_position, :uint64, 1
|
242
|
+
optional :prepare_position, :uint64, 2
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
module EventStore
|
248
|
+
module Client
|
249
|
+
module Streams
|
250
|
+
ReadReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq").msgclass
|
251
|
+
ReadReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options").msgclass
|
252
|
+
ReadReq::Options::StreamOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.StreamOptions").msgclass
|
253
|
+
ReadReq::Options::AllOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.AllOptions").msgclass
|
254
|
+
ReadReq::Options::SubscriptionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.SubscriptionOptions").msgclass
|
255
|
+
ReadReq::Options::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.Position").msgclass
|
256
|
+
ReadReq::Options::FilterOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.FilterOptions").msgclass
|
257
|
+
ReadReq::Options::FilterOptions::Expression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.FilterOptions.Expression").msgclass
|
258
|
+
ReadReq::Options::UUIDOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.UUIDOption").msgclass
|
259
|
+
ReadReq::Options::ReadDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadReq.Options.ReadDirection").enummodule
|
260
|
+
ReadResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadResp").msgclass
|
261
|
+
ReadResp::ReadEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadResp.ReadEvent").msgclass
|
262
|
+
ReadResp::ReadEvent::RecordedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadResp.ReadEvent.RecordedEvent").msgclass
|
263
|
+
ReadResp::SubscriptionConfirmation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadResp.SubscriptionConfirmation").msgclass
|
264
|
+
ReadResp::Checkpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadResp.Checkpoint").msgclass
|
265
|
+
ReadResp::StreamNotFound = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.ReadResp.StreamNotFound").msgclass
|
266
|
+
AppendReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.AppendReq").msgclass
|
267
|
+
AppendReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.AppendReq.Options").msgclass
|
268
|
+
AppendReq::ProposedMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.AppendReq.ProposedMessage").msgclass
|
269
|
+
AppendResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.AppendResp").msgclass
|
270
|
+
AppendResp::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.AppendResp.Position").msgclass
|
271
|
+
AppendResp::Success = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.AppendResp.Success").msgclass
|
272
|
+
AppendResp::WrongExpectedVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.AppendResp.WrongExpectedVersion").msgclass
|
273
|
+
DeleteReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.DeleteReq").msgclass
|
274
|
+
DeleteReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.DeleteReq.Options").msgclass
|
275
|
+
DeleteResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.DeleteResp").msgclass
|
276
|
+
DeleteResp::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.DeleteResp.Position").msgclass
|
277
|
+
TombstoneReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.TombstoneReq").msgclass
|
278
|
+
TombstoneReq::Options = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.TombstoneReq.Options").msgclass
|
279
|
+
TombstoneResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.TombstoneResp").msgclass
|
280
|
+
TombstoneResp::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("event_store.client.streams.TombstoneResp.Position").msgclass
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|