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