Skip to content

Commit

Permalink
chore: add proto description of the RaftService (#3889)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jvmakine and github-actions[bot] authored Jan 3, 2025
1 parent 1bce923 commit 8f40e5b
Show file tree
Hide file tree
Showing 9 changed files with 605 additions and 9 deletions.
209 changes: 209 additions & 0 deletions backend/protos/xyz/block/ftl/raft/v1/raft.pb.go

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

26 changes: 26 additions & 0 deletions backend/protos/xyz/block/ftl/raft/v1/raft.proto
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 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.

Loading

0 comments on commit 8f40e5b

Please sign in to comment.