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
@@ -1,149 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
package event_store.cluster;
|
3
|
-
option java_package = "com.eventstore.dbclient.proto.cluster";
|
4
|
-
|
5
|
-
import "shared.proto";
|
6
|
-
|
7
|
-
service Gossip {
|
8
|
-
rpc Update (GossipRequest) returns (ClusterInfo);
|
9
|
-
rpc Read (event_store.client.shared.Empty) returns (ClusterInfo);
|
10
|
-
}
|
11
|
-
|
12
|
-
service Elections {
|
13
|
-
rpc ViewChange (ViewChangeRequest) returns (event_store.client.shared.Empty);
|
14
|
-
rpc ViewChangeProof (ViewChangeProofRequest) returns (event_store.client.shared.Empty);
|
15
|
-
rpc Prepare (PrepareRequest) returns (event_store.client.shared.Empty);
|
16
|
-
rpc PrepareOk (PrepareOkRequest) returns (event_store.client.shared.Empty);
|
17
|
-
rpc Proposal (ProposalRequest) returns (event_store.client.shared.Empty);
|
18
|
-
rpc Accept (AcceptRequest) returns (event_store.client.shared.Empty);
|
19
|
-
|
20
|
-
rpc LeaderIsResigning (LeaderIsResigningRequest) returns (event_store.client.shared.Empty);
|
21
|
-
rpc LeaderIsResigningOk (LeaderIsResigningOkRequest) returns (event_store.client.shared.Empty);
|
22
|
-
}
|
23
|
-
|
24
|
-
message GossipRequest {
|
25
|
-
ClusterInfo info = 1;
|
26
|
-
EndPoint server = 2;
|
27
|
-
}
|
28
|
-
|
29
|
-
message ViewChangeRequest {
|
30
|
-
event_store.client.shared.UUID server_id = 1;
|
31
|
-
EndPoint server_http = 2;
|
32
|
-
int32 attempted_view = 3;
|
33
|
-
}
|
34
|
-
|
35
|
-
message ViewChangeProofRequest {
|
36
|
-
event_store.client.shared.UUID server_id = 1;
|
37
|
-
EndPoint server_http = 2;
|
38
|
-
int32 installed_view = 3;
|
39
|
-
}
|
40
|
-
|
41
|
-
message PrepareRequest {
|
42
|
-
event_store.client.shared.UUID server_id = 1;
|
43
|
-
EndPoint server_http = 2;
|
44
|
-
int32 view = 3;
|
45
|
-
}
|
46
|
-
|
47
|
-
message PrepareOkRequest {
|
48
|
-
int32 view = 1;
|
49
|
-
event_store.client.shared.UUID server_id = 2;
|
50
|
-
EndPoint server_http = 3;
|
51
|
-
int32 epoch_number = 4;
|
52
|
-
int64 epoch_position = 5;
|
53
|
-
event_store.client.shared.UUID epoch_id = 6;
|
54
|
-
event_store.client.shared.UUID epoch_leader_instance_id = 7;
|
55
|
-
int64 last_commit_position = 8;
|
56
|
-
int64 writer_checkpoint = 9;
|
57
|
-
int64 chaser_checkpoint = 10;
|
58
|
-
int32 node_priority = 11;
|
59
|
-
ClusterInfo cluster_info = 12;
|
60
|
-
}
|
61
|
-
|
62
|
-
message ProposalRequest {
|
63
|
-
event_store.client.shared.UUID server_id = 1;
|
64
|
-
EndPoint server_http = 2;
|
65
|
-
event_store.client.shared.UUID leader_id = 3;
|
66
|
-
EndPoint leader_http = 4;
|
67
|
-
int32 view = 5;
|
68
|
-
int32 epoch_number = 6;
|
69
|
-
int64 epoch_position = 7;
|
70
|
-
event_store.client.shared.UUID epoch_id = 8;
|
71
|
-
event_store.client.shared.UUID epoch_leader_instance_id = 9;
|
72
|
-
int64 last_commit_position = 10;
|
73
|
-
int64 writer_checkpoint = 11;
|
74
|
-
int64 chaser_checkpoint = 12;
|
75
|
-
int32 node_priority = 13;
|
76
|
-
}
|
77
|
-
|
78
|
-
message AcceptRequest {
|
79
|
-
event_store.client.shared.UUID server_id = 1;
|
80
|
-
EndPoint server_http = 2;
|
81
|
-
event_store.client.shared.UUID leader_id = 3;
|
82
|
-
EndPoint leader_http = 4;
|
83
|
-
int32 view = 5;
|
84
|
-
}
|
85
|
-
|
86
|
-
message LeaderIsResigningRequest {
|
87
|
-
event_store.client.shared.UUID leader_id = 1;
|
88
|
-
EndPoint leader_http = 2;
|
89
|
-
}
|
90
|
-
|
91
|
-
message LeaderIsResigningOkRequest {
|
92
|
-
event_store.client.shared.UUID leader_id = 1;
|
93
|
-
EndPoint leader_http = 2;
|
94
|
-
event_store.client.shared.UUID server_id = 3;
|
95
|
-
EndPoint server_http = 4;
|
96
|
-
}
|
97
|
-
|
98
|
-
message ClusterInfo {
|
99
|
-
repeated MemberInfo members = 1;
|
100
|
-
}
|
101
|
-
|
102
|
-
message EndPoint {
|
103
|
-
string address = 1;
|
104
|
-
uint32 port = 2;
|
105
|
-
}
|
106
|
-
|
107
|
-
message MemberInfo {
|
108
|
-
enum VNodeState {
|
109
|
-
Initializing = 0;
|
110
|
-
DiscoverLeader = 1;
|
111
|
-
Unknown = 2;
|
112
|
-
PreReplica = 3;
|
113
|
-
CatchingUp = 4;
|
114
|
-
Clone = 5;
|
115
|
-
Follower = 6;
|
116
|
-
PreLeader = 7;
|
117
|
-
Leader = 8;
|
118
|
-
Manager = 9;
|
119
|
-
ShuttingDown = 10;
|
120
|
-
Shutdown = 11;
|
121
|
-
ReadOnlyLeaderless = 12;
|
122
|
-
PreReadOnlyReplica = 13;
|
123
|
-
ReadOnlyReplica = 14;
|
124
|
-
ResigningLeader = 15;
|
125
|
-
}
|
126
|
-
event_store.client.shared.UUID instance_id = 1;
|
127
|
-
int64 time_stamp = 2;
|
128
|
-
VNodeState state = 3;
|
129
|
-
bool is_alive = 4;
|
130
|
-
EndPoint http_end_point = 5;
|
131
|
-
EndPoint internal_tcp = 6;
|
132
|
-
EndPoint external_tcp = 7;
|
133
|
-
bool internal_tcp_uses_tls = 8;
|
134
|
-
bool external_tcp_uses_tls = 9;
|
135
|
-
|
136
|
-
int64 last_commit_position = 10;
|
137
|
-
int64 writer_checkpoint = 11;
|
138
|
-
int64 chaser_checkpoint = 12;
|
139
|
-
int64 epoch_position = 13;
|
140
|
-
int32 epoch_number = 14;
|
141
|
-
event_store.client.shared.UUID epoch_id = 15;
|
142
|
-
|
143
|
-
int32 node_priority = 16;
|
144
|
-
bool is_read_only_replica = 17;
|
145
|
-
string advertise_host_to_client_as = 18;
|
146
|
-
uint32 advertise_http_port_to_client_as = 19;
|
147
|
-
uint32 advertise_tcp_port_to_client_as = 20;
|
148
|
-
}
|
149
|
-
|
@@ -1,44 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
package event_store.client.gossip;
|
3
|
-
option java_package = "com.eventstore.dbclient.proto.gossip";
|
4
|
-
|
5
|
-
import "shared.proto";
|
6
|
-
|
7
|
-
service Gossip {
|
8
|
-
rpc Read (event_store.client.shared.Empty) returns (ClusterInfo);
|
9
|
-
}
|
10
|
-
|
11
|
-
message ClusterInfo {
|
12
|
-
repeated MemberInfo members = 1;
|
13
|
-
}
|
14
|
-
|
15
|
-
message EndPoint {
|
16
|
-
string address = 1;
|
17
|
-
uint32 port = 2;
|
18
|
-
}
|
19
|
-
|
20
|
-
message MemberInfo {
|
21
|
-
enum VNodeState {
|
22
|
-
Initializing = 0;
|
23
|
-
DiscoverLeader = 1;
|
24
|
-
Unknown = 2;
|
25
|
-
PreReplica = 3;
|
26
|
-
CatchingUp = 4;
|
27
|
-
Clone = 5;
|
28
|
-
Follower = 6;
|
29
|
-
PreLeader = 7;
|
30
|
-
Leader = 8;
|
31
|
-
Manager = 9;
|
32
|
-
ShuttingDown = 10;
|
33
|
-
Shutdown = 11;
|
34
|
-
ReadOnlyLeaderless = 12;
|
35
|
-
PreReadOnlyReplica = 13;
|
36
|
-
ReadOnlyReplica = 14;
|
37
|
-
ResigningLeader = 15;
|
38
|
-
}
|
39
|
-
event_store.client.shared.UUID instance_id = 1;
|
40
|
-
int64 time_stamp = 2;
|
41
|
-
VNodeState state = 3;
|
42
|
-
bool is_alive = 4;
|
43
|
-
EndPoint http_end_point = 5;
|
44
|
-
}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
package event_store.client.operations;
|
3
|
-
option java_package = "com.eventstore.dbclient.proto.operations";
|
4
|
-
|
5
|
-
import "shared.proto";
|
6
|
-
|
7
|
-
service Operations {
|
8
|
-
rpc StartScavenge (StartScavengeReq) returns (ScavengeResp);
|
9
|
-
rpc StopScavenge (StopScavengeReq) returns (ScavengeResp);
|
10
|
-
rpc Shutdown (event_store.client.shared.Empty) returns (event_store.client.shared.Empty);
|
11
|
-
rpc MergeIndexes (event_store.client.shared.Empty) returns (event_store.client.shared.Empty);
|
12
|
-
rpc ResignNode (event_store.client.shared.Empty) returns (event_store.client.shared.Empty);
|
13
|
-
rpc SetNodePriority (SetNodePriorityReq) returns (event_store.client.shared.Empty);
|
14
|
-
rpc RestartPersistentSubscriptions (event_store.client.shared.Empty) returns (event_store.client.shared.Empty);
|
15
|
-
}
|
16
|
-
|
17
|
-
message StartScavengeReq {
|
18
|
-
Options options = 1;
|
19
|
-
message Options {
|
20
|
-
int32 thread_count = 1;
|
21
|
-
int32 start_from_chunk = 2;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
message StopScavengeReq {
|
26
|
-
Options options = 1;
|
27
|
-
message Options {
|
28
|
-
string scavenge_id = 1;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
message ScavengeResp {
|
33
|
-
string scavenge_id = 1;
|
34
|
-
ScavengeResult scavenge_result = 2;
|
35
|
-
|
36
|
-
enum ScavengeResult {
|
37
|
-
Started = 0;
|
38
|
-
InProgress = 1;
|
39
|
-
Stopped = 2;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
message SetNodePriorityReq {
|
44
|
-
int32 priority = 1;
|
45
|
-
}
|
@@ -1,180 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
package event_store.client.persistent_subscriptions;
|
3
|
-
option java_package = "com.eventstore.dbclient.proto.persistentsubscriptions";
|
4
|
-
|
5
|
-
import "shared.proto";
|
6
|
-
|
7
|
-
service PersistentSubscriptions {
|
8
|
-
rpc Create (CreateReq) returns (CreateResp);
|
9
|
-
rpc Update (UpdateReq) returns (UpdateResp);
|
10
|
-
rpc Delete (DeleteReq) returns (DeleteResp);
|
11
|
-
rpc Read (stream ReadReq) returns (stream ReadResp);
|
12
|
-
}
|
13
|
-
|
14
|
-
message ReadReq {
|
15
|
-
oneof content {
|
16
|
-
Options options = 1;
|
17
|
-
Ack ack = 2;
|
18
|
-
Nack nack = 3;
|
19
|
-
}
|
20
|
-
|
21
|
-
message Options {
|
22
|
-
event_store.client.shared.StreamIdentifier stream_identifier = 1;
|
23
|
-
string group_name = 2;
|
24
|
-
int32 buffer_size = 3;
|
25
|
-
UUIDOption uuid_option = 4;
|
26
|
-
|
27
|
-
message UUIDOption {
|
28
|
-
oneof content {
|
29
|
-
event_store.client.shared.Empty structured = 1;
|
30
|
-
event_store.client.shared.Empty string = 2;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
message Ack {
|
36
|
-
bytes id = 1;
|
37
|
-
repeated event_store.client.shared.UUID ids = 2;
|
38
|
-
}
|
39
|
-
|
40
|
-
message Nack {
|
41
|
-
bytes id = 1;
|
42
|
-
repeated event_store.client.shared.UUID ids = 2;
|
43
|
-
Action action = 3;
|
44
|
-
string reason = 4;
|
45
|
-
|
46
|
-
enum Action {
|
47
|
-
Unknown = 0;
|
48
|
-
Park = 1;
|
49
|
-
Retry = 2;
|
50
|
-
Skip = 3;
|
51
|
-
Stop = 4;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
message ReadResp {
|
57
|
-
oneof content {
|
58
|
-
ReadEvent event = 1;
|
59
|
-
SubscriptionConfirmation subscription_confirmation = 2;
|
60
|
-
}
|
61
|
-
message ReadEvent {
|
62
|
-
RecordedEvent event = 1;
|
63
|
-
RecordedEvent link = 2;
|
64
|
-
oneof position {
|
65
|
-
uint64 commit_position = 3;
|
66
|
-
event_store.client.shared.Empty no_position = 4;
|
67
|
-
}
|
68
|
-
oneof count {
|
69
|
-
int32 retry_count = 5;
|
70
|
-
event_store.client.shared.Empty no_retry_count = 6;
|
71
|
-
}
|
72
|
-
message RecordedEvent {
|
73
|
-
event_store.client.shared.UUID id = 1;
|
74
|
-
event_store.client.shared.StreamIdentifier stream_identifier = 2;
|
75
|
-
uint64 stream_revision = 3;
|
76
|
-
uint64 prepare_position = 4;
|
77
|
-
uint64 commit_position = 5;
|
78
|
-
map<string, string> metadata = 6;
|
79
|
-
bytes custom_metadata = 7;
|
80
|
-
bytes data = 8;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
message SubscriptionConfirmation {
|
84
|
-
string subscription_id = 1;
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
message CreateReq {
|
89
|
-
Options options = 1;
|
90
|
-
|
91
|
-
message Options {
|
92
|
-
event_store.client.shared.StreamIdentifier stream_identifier = 1;
|
93
|
-
string group_name = 2;
|
94
|
-
Settings settings = 3;
|
95
|
-
}
|
96
|
-
|
97
|
-
message Settings {
|
98
|
-
bool resolve_links = 1;
|
99
|
-
uint64 revision = 2;
|
100
|
-
bool extra_statistics = 3;
|
101
|
-
int32 max_retry_count = 5;
|
102
|
-
int32 min_checkpoint_count = 7;
|
103
|
-
int32 max_checkpoint_count = 8;
|
104
|
-
int32 max_subscriber_count = 9;
|
105
|
-
int32 live_buffer_size = 10;
|
106
|
-
int32 read_batch_size = 11;
|
107
|
-
int32 history_buffer_size = 12;
|
108
|
-
ConsumerStrategy named_consumer_strategy = 13;
|
109
|
-
oneof message_timeout {
|
110
|
-
int64 message_timeout_ticks = 4;
|
111
|
-
int32 message_timeout_ms = 14;
|
112
|
-
}
|
113
|
-
oneof checkpoint_after {
|
114
|
-
int64 checkpoint_after_ticks = 6;
|
115
|
-
int32 checkpoint_after_ms = 15;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
enum ConsumerStrategy {
|
120
|
-
DispatchToSingle = 0;
|
121
|
-
RoundRobin = 1;
|
122
|
-
Pinned = 2;
|
123
|
-
}
|
124
|
-
}
|
125
|
-
|
126
|
-
message CreateResp {
|
127
|
-
}
|
128
|
-
|
129
|
-
message UpdateReq {
|
130
|
-
Options options = 1;
|
131
|
-
|
132
|
-
message Options {
|
133
|
-
event_store.client.shared.StreamIdentifier stream_identifier = 1;
|
134
|
-
string group_name = 2;
|
135
|
-
Settings settings = 3;
|
136
|
-
}
|
137
|
-
|
138
|
-
message Settings {
|
139
|
-
bool resolve_links = 1;
|
140
|
-
uint64 revision = 2;
|
141
|
-
bool extra_statistics = 3;
|
142
|
-
int32 max_retry_count = 5;
|
143
|
-
int32 min_checkpoint_count = 7;
|
144
|
-
int32 max_checkpoint_count = 8;
|
145
|
-
int32 max_subscriber_count = 9;
|
146
|
-
int32 live_buffer_size = 10;
|
147
|
-
int32 read_batch_size = 11;
|
148
|
-
int32 history_buffer_size = 12;
|
149
|
-
ConsumerStrategy named_consumer_strategy = 13;
|
150
|
-
oneof message_timeout {
|
151
|
-
int64 message_timeout_ticks = 4;
|
152
|
-
int32 message_timeout_ms = 14;
|
153
|
-
}
|
154
|
-
oneof checkpoint_after {
|
155
|
-
int64 checkpoint_after_ticks = 6;
|
156
|
-
int32 checkpoint_after_ms = 15;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
|
160
|
-
enum ConsumerStrategy {
|
161
|
-
DispatchToSingle = 0;
|
162
|
-
RoundRobin = 1;
|
163
|
-
Pinned = 2;
|
164
|
-
}
|
165
|
-
}
|
166
|
-
|
167
|
-
message UpdateResp {
|
168
|
-
}
|
169
|
-
|
170
|
-
message DeleteReq {
|
171
|
-
Options options = 1;
|
172
|
-
|
173
|
-
message Options {
|
174
|
-
event_store.client.shared.StreamIdentifier stream_identifier = 1;
|
175
|
-
string group_name = 2;
|
176
|
-
}
|
177
|
-
}
|
178
|
-
|
179
|
-
message DeleteResp {
|
180
|
-
}
|
@@ -1,174 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
package event_store.client.projections;
|
3
|
-
option java_package = "com.eventstore.dbclient.proto.projections";
|
4
|
-
|
5
|
-
import "google/protobuf/struct.proto";
|
6
|
-
import "shared.proto";
|
7
|
-
|
8
|
-
service Projections {
|
9
|
-
rpc Create (CreateReq) returns (CreateResp);
|
10
|
-
rpc Update (UpdateReq) returns (UpdateResp);
|
11
|
-
rpc Delete (DeleteReq) returns (DeleteResp);
|
12
|
-
rpc Statistics (StatisticsReq) returns (stream StatisticsResp);
|
13
|
-
rpc Disable (DisableReq) returns (DisableResp);
|
14
|
-
rpc Enable (EnableReq) returns (EnableResp);
|
15
|
-
rpc Reset (ResetReq) returns (ResetResp);
|
16
|
-
rpc State (StateReq) returns (StateResp);
|
17
|
-
rpc Result (ResultReq) returns (ResultResp);
|
18
|
-
rpc RestartSubsystem (event_store.client.shared.Empty) returns (event_store.client.shared.Empty);
|
19
|
-
}
|
20
|
-
|
21
|
-
message CreateReq {
|
22
|
-
Options options = 1;
|
23
|
-
|
24
|
-
message Options {
|
25
|
-
oneof mode {
|
26
|
-
event_store.client.shared.Empty one_time = 1;
|
27
|
-
Transient transient = 2;
|
28
|
-
Continuous continuous = 3;
|
29
|
-
}
|
30
|
-
string query = 4;
|
31
|
-
|
32
|
-
message Transient {
|
33
|
-
string name = 1;
|
34
|
-
}
|
35
|
-
message Continuous {
|
36
|
-
string name = 1;
|
37
|
-
bool track_emitted_streams = 2;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
message CreateResp {
|
43
|
-
}
|
44
|
-
|
45
|
-
message UpdateReq {
|
46
|
-
Options options = 1;
|
47
|
-
|
48
|
-
message Options {
|
49
|
-
string name = 1;
|
50
|
-
string query = 2;
|
51
|
-
oneof emit_option {
|
52
|
-
bool emit_enabled = 3;
|
53
|
-
event_store.client.shared.Empty no_emit_options = 4;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
message UpdateResp {
|
59
|
-
}
|
60
|
-
|
61
|
-
message DeleteReq {
|
62
|
-
Options options = 1;
|
63
|
-
|
64
|
-
message Options {
|
65
|
-
string name = 1;
|
66
|
-
bool delete_emitted_streams = 2;
|
67
|
-
bool delete_state_stream = 3;
|
68
|
-
bool delete_checkpoint_stream = 4;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
message DeleteResp {
|
73
|
-
}
|
74
|
-
|
75
|
-
message StatisticsReq {
|
76
|
-
Options options = 1;
|
77
|
-
message Options {
|
78
|
-
oneof mode {
|
79
|
-
string name = 1;
|
80
|
-
event_store.client.shared.Empty all = 2;
|
81
|
-
event_store.client.shared.Empty transient = 3;
|
82
|
-
event_store.client.shared.Empty continuous = 4;
|
83
|
-
event_store.client.shared.Empty one_time = 5;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
message StatisticsResp {
|
89
|
-
Details details = 1;
|
90
|
-
|
91
|
-
message Details {
|
92
|
-
int64 coreProcessingTime = 1;
|
93
|
-
int64 version = 2;
|
94
|
-
int64 epoch = 3;
|
95
|
-
string effectiveName = 4;
|
96
|
-
int32 writesInProgress = 5;
|
97
|
-
int32 readsInProgress = 6;
|
98
|
-
int32 partitionsCached = 7;
|
99
|
-
string status = 8;
|
100
|
-
string stateReason = 9;
|
101
|
-
string name = 10;
|
102
|
-
string mode = 11;
|
103
|
-
string position = 12;
|
104
|
-
float progress = 13;
|
105
|
-
string lastCheckpoint = 14;
|
106
|
-
int64 eventsProcessedAfterRestart = 15;
|
107
|
-
string checkpointStatus = 16;
|
108
|
-
int64 bufferedEvents = 17;
|
109
|
-
int32 writePendingEventsBeforeCheckpoint = 18;
|
110
|
-
int32 writePendingEventsAfterCheckpoint = 19;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
message StateReq {
|
115
|
-
Options options = 1;
|
116
|
-
|
117
|
-
message Options {
|
118
|
-
string name = 1;
|
119
|
-
string partition = 2;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
message StateResp {
|
124
|
-
google.protobuf.Value state = 1;
|
125
|
-
}
|
126
|
-
|
127
|
-
message ResultReq {
|
128
|
-
Options options = 1;
|
129
|
-
|
130
|
-
message Options {
|
131
|
-
string name = 1;
|
132
|
-
string partition = 2;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
message ResultResp {
|
137
|
-
google.protobuf.Value result = 1;
|
138
|
-
}
|
139
|
-
|
140
|
-
message ResetReq {
|
141
|
-
Options options = 1;
|
142
|
-
|
143
|
-
message Options {
|
144
|
-
string name = 1;
|
145
|
-
bool write_checkpoint = 2;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
|
149
|
-
message ResetResp {
|
150
|
-
}
|
151
|
-
|
152
|
-
|
153
|
-
message EnableReq {
|
154
|
-
Options options = 1;
|
155
|
-
|
156
|
-
message Options {
|
157
|
-
string name = 1;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
|
161
|
-
message EnableResp {
|
162
|
-
}
|
163
|
-
|
164
|
-
message DisableReq {
|
165
|
-
Options options = 1;
|
166
|
-
|
167
|
-
message Options {
|
168
|
-
string name = 1;
|
169
|
-
bool write_checkpoint = 2;
|
170
|
-
}
|
171
|
-
}
|
172
|
-
|
173
|
-
message DisableResp {
|
174
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
package event_store.client.shared;
|
3
|
-
option java_package = "com.eventstore.dbclient.proto.shared";
|
4
|
-
|
5
|
-
message UUID {
|
6
|
-
oneof value {
|
7
|
-
Structured structured = 1;
|
8
|
-
string string = 2;
|
9
|
-
}
|
10
|
-
|
11
|
-
message Structured {
|
12
|
-
int64 most_significant_bits = 1;
|
13
|
-
int64 least_significant_bits = 2;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
message Empty {
|
17
|
-
}
|
18
|
-
|
19
|
-
message StreamIdentifier {
|
20
|
-
reserved 1 to 2;
|
21
|
-
bytes streamName = 3;
|
22
|
-
}
|