mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-23 21:44:41 +02:00
18 lines
278 B
Protocol Buffer
18 lines
278 B
Protocol Buffer
|
|
syntax = "proto3";
|
||
|
|
|
||
|
|
option go_package = "../greeter";
|
||
|
|
|
||
|
|
service Greeter {
|
||
|
|
rpc Hello(Request) returns (Response) {}
|
||
|
|
rpc Stream(stream Request) returns (stream Response) {}
|
||
|
|
}
|
||
|
|
|
||
|
|
message Request {
|
||
|
|
string name = 1;
|
||
|
|
optional string msg = 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
message Response {
|
||
|
|
string msg = 1;
|
||
|
|
}
|