Compare commits
3 Commits
5c6b67694d
...
f65839620c
Author | SHA1 | Date | |
---|---|---|---|
f65839620c | |||
762aae7309 | |||
ba8940c3c4 |
12
plug.proto
12
plug.proto
@ -1,4 +1,5 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
import "google/protobuf/timestamp.proto";
|
||||||
|
|
||||||
option go_package = "git.dragse.it/anthrove/plug-[REPLACE_ME]/api/gRPC";
|
option go_package = "git.dragse.it/anthrove/plug-[REPLACE_ME]/api/gRPC";
|
||||||
|
|
||||||
@ -6,6 +7,17 @@ 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
|
||||||
|
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 {
|
message PlugTaskStatus {
|
||||||
|
Reference in New Issue
Block a user