Skip to content

Commit

Permalink
feat: allow retrieving server metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
gm0stache committed Nov 27, 2023
1 parent cb2f0f1 commit 0af7e1d
Show file tree
Hide file tree
Showing 7 changed files with 347 additions and 44 deletions.
281 changes: 243 additions & 38 deletions api/v1/log.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions api/v1/log.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,25 @@ message GetRecordResponse {
Record record = 1;
}

message GetServersRequest {

}

message Server {
string id = 1;
string rpc_addr = 2;
bool is_leader = 3;
}

message GetServersResponse {
repeated Server servers = 1;
}


service Log {
rpc Create(CreateRecordRequest) returns (CreateRecordResponse) {}
rpc CreateStream(stream CreateRecordRequest) returns (stream CreateRecordResponse){}
rpc Get(GetRecordRequest) returns (GetRecordResponse){}
rpc GetStream(stream GetRecordRequest) returns (stream GetRecordResponse){}
rpc GetServers(GetServersRequest) returns (GetServersResponse){}
}
Loading

0 comments on commit 0af7e1d

Please sign in to comment.