axum-connect/axum-connect-examples/proto/hello.proto
2023-05-07 20:13:43 -07:00

12 lines
290 B
Protocol Buffer

syntax = "proto3";
package hello;
message HelloRequest { optional string name = 1; }
message HelloResponse { string message = 1; }
service HelloWorldService {
rpc SayHello(HelloRequest) returns (HelloResponse) {}
rpc SayHelloStream(HelloRequest) returns (stream HelloResponse) {}
}