iris/_examples/mvc/grpc-compatible-bidirectional-stream/helloworld.proto
Gerasimos (Makis) Maropoulos a70ee32ebd
fix #1665
2020-10-31 05:04:05 +02:00

40 lines
966 B
Protocol Buffer

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) {}
}