Skip to content

Commit

Permalink
Merge pull request #90 from ahjohannessen/wip-adjust-protos
Browse files Browse the repository at this point in the history
misc: adjust to upstream wrt. protobuf
  • Loading branch information
ahjohannessen committed Jun 20, 2020
2 parents ae7e769 + 88762f6 commit 03ab589
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 03ab589

Please sign in to comment.