29 lines
366 B
Protocol Buffer
Executable File
29 lines
366 B
Protocol Buffer
Executable File
syntax = "proto3";
|
|
|
|
package plugin;
|
|
|
|
option go_package = ".";
|
|
|
|
message ExecIn {
|
|
string service = 1;
|
|
string method = 2;
|
|
string params = 3;
|
|
}
|
|
|
|
message ExecOut {
|
|
string result = 1;
|
|
string id = 2;
|
|
}
|
|
|
|
message ListIn {
|
|
}
|
|
|
|
message ListOut {
|
|
map<string, string> list = 1;
|
|
}
|
|
|
|
service Plugin {
|
|
rpc Exec(ExecIn) returns (ExecOut);
|
|
rpc List(ListIn) returns (ListOut);
|
|
}
|