Skip to content

Commit

Permalink
feat: client load balance
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Oct 23, 2024
1 parent 3292363 commit 2fff550
Show file tree
Hide file tree
Showing 10 changed files with 358 additions and 57 deletions.
287 changes: 246 additions & 41 deletions api/v1/log.pb.go

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

13 changes: 13 additions & 0 deletions api/v1/log.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ service Log {
rpc Consume(ConsumeRequest) returns (ConsumeResponse) {}
rpc ConsumeStream(ConsumeRequest) returns (stream ConsumeResponse) {}
rpc ProduceStream(stream ProduceRequest) returns (stream ProduceResponse) {}
rpc GetServers(GetServersRequest) returns (GetServersResponse) {}
}

message ProduceRequest {
Expand All @@ -33,3 +34,15 @@ message Record {
uint64 term = 3;
uint32 type = 4;
}

message GetServersRequest {}

message GetServersResponse {
repeated Server servers = 1;
}

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

0 comments on commit 2fff550

Please sign in to comment.