adiciona arquivos de configuração e implementa cliente e servidor gRPC
This commit is contained in:
+23
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user