-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support new eventstore v21.6.0 features #45
Comments
here's the new monitoring proto: syntax = "proto3";
package event_store.client.monitoring;
option java_package = "com.eventstore.dbclient.proto.monitoring";
service Monitoring {
rpc Stats(StatsReq) returns (stream StatsResp);
}
message StatsReq {
bool use_metadata = 1;
uint64 refresh_time_period_in_ms = 4;
}
message StatsResp {
map<string, string> stats = 1;
} will have to play around with the request to see what kind of goodies get packed in there |
here's the diff of the streams.proto definitions which adds in the new batch-append rpc diff --git a/src/Protos/Grpc/streams.proto b/src/Protos/Grpc/streams.proto
index d5fc1e50b..dd71e65f5 100644
--- a/src/Protos/Grpc/streams.proto
+++ b/src/Protos/Grpc/streams.proto
@@ -3,12 +3,16 @@ package event_store.client.streams;
option java_package = "com.eventstore.dbclient.proto.streams";
import "shared.proto";
+import "status.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
service Streams {
rpc Read (ReadReq) returns (stream ReadResp);
rpc Append (stream AppendReq) returns (AppendResp);
rpc Delete (DeleteReq) returns (DeleteResp);
rpc Tombstone (TombstoneReq) returns (TombstoneResp);
+ rpc BatchAppend (stream BatchAppendReq) returns (stream BatchAppendResp);
}
message ReadReq {
@@ -157,48 +161,101 @@ message AppendResp {
+message BatchAppendReq {
+ event_store.client.UUID correlation_id = 1;
+ Options options = 2;
+ repeated ProposedMessage proposed_messages = 3;
+ bool is_final = 4;
+
+ message Options {
+ event_store.client.StreamIdentifier stream_identifier = 1;
+ oneof expected_stream_position {
+ uint64 stream_position = 2;
+ google.protobuf.Empty no_stream = 3;
+ google.protobuf.Empty any = 4;
+ google.protobuf.Empty stream_exists = 5;
+ }
+ google.protobuf.Timestamp deadline = 6;
+ }
+
+ message ProposedMessage {
+ event_store.client.UUID id = 1;
+ map<string, string> metadata = 2;
+ bytes custom_metadata = 3;
+ bytes data = 4;
+ }
+}
+
+message BatchAppendResp {
+ event_store.client.UUID correlation_id = 1;
+ oneof result {
+ google.rpc.Status error = 2;
+ Success success = 3;
+ }
+
+ event_store.client.StreamIdentifier stream_identifier = 4;
+
+ oneof expected_stream_position {
+ uint64 stream_position = 5;
+ google.protobuf.Empty no_stream = 6;
+ google.protobuf.Empty any = 7;
+ google.protobuf.Empty stream_exists = 8;
+ }
+
+ message Success {
+ oneof current_revision_option {
+ uint64 current_revision = 1;
+ google.protobuf.Empty no_stream = 2;
+ }
+ oneof position_option {
+ event_store.client.AllStreamPosition position = 3;
+ google.protobuf.Empty no_position = 4;
+ }
+ }
+}
+ (note that changes to |
This was referenced Aug 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in the new protos I see
The text was updated successfully, but these errors were encountered: