16 lines
258 B
Protocol Buffer
16 lines
258 B
Protocol Buffer
syntax = "proto3";
|
|
package git.sshear.dev.rpcgoexample.helloworld;
|
|
option go_package = "rpc/helloworld";
|
|
|
|
service HelloWorld {
|
|
rpc Hello(HelloReq) returns (HelloResp);
|
|
}
|
|
|
|
message HelloReq {
|
|
string subject = 1;
|
|
}
|
|
|
|
message HelloResp {
|
|
string text = 1;
|
|
}
|