mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 21:53:36 +01:00
33 lines
597 B
Protocol Buffer
33 lines
597 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package yaak.plugins.runtime;
|
|
|
|
service PluginRuntime {
|
|
rpc hookImport (HookImportRequest) returns (HookResponse);
|
|
rpc hookResponseFilter (HookResponseFilterRequest) returns (HookResponse);
|
|
rpc hookExport (HookExportRequest) returns (HookResponse);
|
|
}
|
|
|
|
message PluginInfo {
|
|
string plugin = 1;
|
|
}
|
|
|
|
message HookResponse {
|
|
PluginInfo info = 1;
|
|
string data = 2;
|
|
}
|
|
|
|
message HookImportRequest {
|
|
string data = 1;
|
|
}
|
|
|
|
message HookResponseFilterRequest {
|
|
string filter = 1;
|
|
string body = 2;
|
|
string contentType = 3;
|
|
}
|
|
|
|
message HookExportRequest {
|
|
string request = 1;
|
|
}
|