feat: added Ping/Pong rpc
This commit is contained in:
parent
5c6b67694d
commit
ba8940c3c4
11
plug.proto
11
plug.proto
@ -6,6 +6,15 @@ service PlugConnector {
|
||||
rpc TaskStart(PlugTaskCreation) returns (PlugTaskStatus);
|
||||
rpc TaskStatus(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
|
||||
}
|
||||
|
||||
message PongResponse {
|
||||
string message = 1; // Optional message field, can be removed if not needed
|
||||
}
|
||||
|
||||
message PlugTaskStatus {
|
||||
@ -28,4 +37,4 @@ message PlugTaskCreation {
|
||||
string user_id = 1;
|
||||
string user_source_name = 2;
|
||||
bool deep_scrape = 3;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user