通过tonic支持节点间通信(初步

This commit is contained in:
junxiang Mu
2024-08-27 11:40:00 +08:00
parent d183dd6e91
commit 0a373bc260
21 changed files with 1632 additions and 36 deletions
+19
View File
@@ -0,0 +1,19 @@
syntax = "proto3";
package node_service;
/* -------------------------------------------------------------------- */
message PingRequest {
uint64 version = 1;
bytes body = 2;
}
message PingResponse {
uint64 version = 1;
bytes body = 2;
}
/* -------------------------------------------------------------------- */
service NodeService {
rpc Ping(PingRequest) returns (PingResponse) {};
}