1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-10-31 05:04:05 +02:00
parent b335ab9c78
commit a70ee32ebd
12 changed files with 927 additions and 15 deletions

View File

@@ -0,0 +1,39 @@
syntax = "proto3";
package helloworld;
option go_package = ".;helloworld";
// The request message containing the user's name.
message HelloRequest {
string name = 1;
}
// The response message containing the greetings
message HelloReply {
string message = 1;
}
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
// The greeting service definition. (Server-side streaming RPC)
service GreeterServerSideSStream {
// Sends a greeting
rpc SayHello (HelloRequest) returns (stream HelloReply) {}
}
// The greeting service definition. (Client-side streaming RPC)
service GreeterClientSideStream {
// Sends a greeting
rpc SayHello (stream HelloRequest) returns (HelloReply) {}
}
// The greeting service definition. (Bidirectional streaming RPC)
service GreeterBidirectionalStream {
// Sends a greeting
rpc SayHello (stream HelloRequest) returns (stream HelloReply) {}
}