mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +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;
|
|
}
|