generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add proto description of the RaftService (#3889)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1bce923
commit 8f40e5b
Showing
9 changed files
with
605 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
|
||
package xyz.block.ftl.raft.v1; | ||
|
||
import "xyz/block/ftl/v1/ftl.proto"; | ||
|
||
option go_package = "github.com/block/ftl/backend/protos/xyz/block/ftl/raft/v1;raftpb"; | ||
option java_multiple_files = true; | ||
|
||
message AddMemberRequest { | ||
string address = 1; | ||
uint64 replica_id = 2; | ||
repeated uint64 shard_ids = 3; | ||
} | ||
|
||
message AddMemberResponse {} | ||
|
||
service RaftService { | ||
// Ping service for readiness. | ||
rpc Ping(xyz.block.ftl.v1.PingRequest) returns (xyz.block.ftl.v1.PingResponse) { | ||
option idempotency_level = NO_SIDE_EFFECTS; | ||
} | ||
|
||
// Add a new member to the cluster. | ||
rpc AddMember(AddMemberRequest) returns (AddMemberResponse); | ||
} |
137 changes: 137 additions & 0 deletions
137
backend/protos/xyz/block/ftl/raft/v1/raftpbconnect/raft.connect.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.