25 lines
470 B
Protocol Buffer
25 lines
470 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
option go_package = "./;pb";
|
|
|
|
// Message defines the request/response structure.
|
|
message Request {
|
|
int32 Case = 1;
|
|
string Data = 2;
|
|
}
|
|
|
|
// Message defines the request/response structure.
|
|
message Response {
|
|
int32 Code = 1;
|
|
string Data = 2;
|
|
}
|
|
|
|
// Service defines the available RPCs.
|
|
service BrainService {
|
|
// SayHello returns a greeting for the given name.
|
|
rpc Add (Request) returns (Response);
|
|
}
|
|
|
|
option optimize_for = SPEED;
|
|
|