Initial commit

This commit is contained in:
2023-01-16 14:44:59 +08:00
parent 315bcda15f
commit 620e192d07
53 changed files with 2174 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
syntax = "proto3";
package Greeter;
option go_package = "./Greeter";
message HelloRequest {
string name = 1;
}
message HelloResponse {
string reply_message = 1;
}
service GreeterService {
rpc Hello (HelloRequest) returns (HelloResponse);
}
message Nothing {
}
message TicktokRequest {
int32 counts = 1;
}
message WatchRequest {
}
message NowResponse {
uint64 now = 1;
int32 counts=2;
}
service TimeService {
rpc Now (Nothing) returns (NowResponse);
rpc Ticktok (TicktokRequest) returns (stream NowResponse);
rpc Watch (stream WatchRequest) returns (stream NowResponse);
}