Skip to content

Commit

Permalink
misc: adjust to upstream wrt. protobuf
Browse files Browse the repository at this point in the history
 - remove protobuf defintions that are not relevant
   currently.

 - adjust code to changes in protobuf and headers.
  • Loading branch information
ahjohannessen committed Jun 20, 2020
1 parent ae7e769 commit 88762f6
Show file tree
Hide file tree
Showing 22 changed files with 381 additions and 672 deletions.
44 changes: 44 additions & 0 deletions core/src/main/protobuf/gossip.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
syntax = "proto3";
package event_store.client.gossip;
option java_package = "com.eventstore.client.gossip";

import "shared.proto";

service Gossip {
rpc Read (event_store.client.Empty) returns (ClusterInfo);
}

message ClusterInfo {
repeated MemberInfo members = 1;
}

message EndPoint {
string address = 1;
uint32 port = 2;
}

message MemberInfo {
enum VNodeState {
Initializing = 0;
DiscoverLeader = 1;
Unknown = 2;
PreReplica = 3;
CatchingUp = 4;
Clone = 5;
Follower = 6;
PreLeader = 7;
Leader = 8;
Manager = 9;
ShuttingDown = 10;
Shutdown = 11;
ReadOnlyLeaderless = 12;
PreReadOnlyReplica = 13;
ReadOnlyReplica = 14;
ResigningLeader = 15;
}
event_store.client.UUID instance_id = 1;
int64 time_stamp = 2;
VNodeState state = 3;
bool is_alive = 4;
EndPoint http_end_point = 5;
}
34 changes: 0 additions & 34 deletions core/src/main/protobuf/operations.proto

This file was deleted.

168 changes: 0 additions & 168 deletions core/src/main/protobuf/persistent.proto

This file was deleted.

Loading

0 comments on commit 88762f6

Please sign in to comment.