adiciona arquivos de configuração e implementa cliente e servidor gRPC

This commit is contained in:
2026-10-08 19:41:24 -04:00
commit ff5a42c78b
9 changed files with 300 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
syntax = "proto3";
package task;
import "google/protobuf/empty.proto";
service TaskService {
rpc FindAll(google.protobuf.Empty) returns(TaskList);
rpc FindOne(TaskId) returns(Task);
}
message TaskId {
int32 id = 1;
}
message TaskList {
repeated Task tasks = 1;
}
message Task {
int32 id = 1;
string title = 2;
}