plug.proto aktualisiert

This commit is contained in:
Lennard Brinkhaus 2024-05-28 20:15:47 +00:00
parent f65839620c
commit 9cd117f2c2

View File

@ -8,6 +8,7 @@ service PlugConnector {
rpc TaskStatus(PlugTask) returns (PlugTaskStatus); rpc TaskStatus(PlugTask) returns (PlugTaskStatus);
rpc TaskCancel(PlugTask) returns (PlugTaskStatus); rpc TaskCancel(PlugTask) returns (PlugTaskStatus);
rpc Ping(PingRequest) returns (PongResponse); // Added Ping endpoint rpc Ping(PingRequest) returns (PongResponse); // Added Ping endpoint
rpc SendMessage(SendMessageRequest) returns (SendMessageResponse);
} }
message PingRequest { message PingRequest {
@ -40,4 +41,14 @@ message PlugTaskCreation {
string user_id = 1; string user_id = 1;
string user_source_name = 2; string user_source_name = 2;
bool deep_scrape = 3; bool deep_scrape = 3;
string api_key = 4;
}
message SendMessageRequest {
string user_id = 1;
string message = 2;
}
message SendMessageResponse {
bool success = 1;
} }