grpc-demo/proto/hello_world.proto

18 lines
415 B
Protocol Buffer
Raw Normal View History

2023-05-02 07:19:35 +00:00
syntax = "proto3";
option go_package = "gitea.dwysokinski.me/Kichiyaki/grpc-g2a/proto";
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
2023-05-03 05:48:39 +00:00
rpc SayHelloClientStream (stream HelloRequest) returns (HelloReply) {}
2023-05-02 07:19:35 +00:00
rpc SayHelloBidirectionalStream (stream HelloRequest) returns (stream HelloReply) {}
}
message HelloRequest {
string name = 1;
}
message HelloReply {
string message = 1;
}