feat: added Ping/Pong rpc #2

Merged
fenpaws merged 2 commits from ping-pong-#1 into main 2024-03-05 20:01:06 +00:00
Showing only changes of commit ba8940c3c4 - Show all commits

View File

@ -6,6 +6,15 @@ service PlugConnector {
rpc TaskStart(PlugTaskCreation) returns (PlugTaskStatus); rpc TaskStart(PlugTaskCreation) returns (PlugTaskStatus);
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
}
message PingRequest {
string message = 1; // Optional message field, can be removed if not needed
fenpaws marked this conversation as resolved

When you really want to implement a real ping pong please send also time entries so you can check how long it takes to receive the message

When you really want to implement a real ping pong please send also time entries so you can check how long it takes to receive the message
}
message PongResponse {
string message = 1; // Optional message field, can be removed if not needed
} }
message PlugTaskStatus { message PlugTaskStatus {
@ -28,4 +37,4 @@ 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;
} }