Compare commits

...

3 Commits

Author SHA1 Message Date
f65839620c Merge pull request 'feat: added Ping/Pong rpc' (#2) from ping-pong-#1 into main
Reviewed-on: #2
Reviewed-by: Lennard Brinkhaus <lennard.brinkhaus@noreply.localhost>
2024-03-05 20:01:02 +00:00
762aae7309 feat: added timestamp 2024-03-05 20:59:11 +01:00
ba8940c3c4 feat: added Ping/Pong rpc 2024-03-05 20:43:49 +01:00

View File

@ -1,4 +1,5 @@
syntax = "proto3";
import "google/protobuf/timestamp.proto";
option go_package = "git.dragse.it/anthrove/plug-[REPLACE_ME]/api/gRPC";
@ -6,6 +7,17 @@ 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
google.protobuf.Timestamp timestamp = 2;
}
message PongResponse {
string message = 1; // Optional message field, can be removed if not needed
google.protobuf.Timestamp timestamp = 2;
}
message PlugTaskStatus {
@ -28,4 +40,4 @@ message PlugTaskCreation {
string user_id = 1;
string user_source_name = 2;
bool deep_scrape = 3;
}
}