mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-12 08:23:58 +02:00
26 lines
374 B
Protocol Buffer
26 lines
374 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package go.micro.bot;
|
|
|
|
service Command {
|
|
rpc Help(HelpRequest) returns (HelpResponse) {};
|
|
rpc Exec(ExecRequest) returns (ExecResponse) {};
|
|
}
|
|
|
|
message HelpRequest {
|
|
}
|
|
|
|
message HelpResponse {
|
|
string usage = 1;
|
|
string description = 2;
|
|
}
|
|
|
|
message ExecRequest {
|
|
repeated string args = 1;
|
|
}
|
|
|
|
message ExecResponse {
|
|
bytes result = 1;
|
|
string error = 2;
|
|
}
|