axum-connect/axum-connect-examples/proto/hello.proto

13 lines
290 B
Protocol Buffer
Raw Normal View History

2023-03-03 01:47:16 +00:00
syntax = "proto3";
2023-04-29 15:36:42 +00:00
package hello;
2023-03-03 01:47:16 +00:00
message HelloRequest { optional string name = 1; }
2023-03-03 01:47:16 +00:00
message HelloResponse { string message = 1; }
2023-03-03 01:47:16 +00:00
service HelloWorldService {
rpc SayHello(HelloRequest) returns (HelloResponse) {}
rpc SayHelloStream(HelloRequest) returns (stream HelloResponse) {}
2023-03-03 01:47:16 +00:00
}