Skip to content

Commit

Permalink
changes to client side connection
Browse files Browse the repository at this point in the history
  • Loading branch information
montekki committed Dec 2, 2024
1 parent de845a7 commit 923035b
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions proto/lagrange.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ syntax = "proto3";

package lagrange;

import "google/protobuf/timestamp.proto";

message WorkerToGwResponse {
oneof response {
string todo = 1;
Expand Down Expand Up @@ -37,19 +39,34 @@ message WorkerDone {
}
}

message UUID {
bytes id = 1;
}

message SubmitTaskRequest {
oneof request {
string task = 1;
}
bytes task_bytes = 1;
// friendly name of a task for logging and tracing
string user_task_id = 2;
google.protobuf.Timestamp timeout = 3;
bytes price_requested = 4;
string class = 5;
}

message SubmitTaskResponse {
oneof reply {
string reply_string = 1;
}
UUID task_uuid = 2;
}

message ProofChannelRequest {
repeated UUID acked_messages = 1;
repeated UUID subscribe_to_messages = 2;
}

message ProofChannelResponse {}

service ClientsService {
rpc ClientToGw(stream SubmitTaskRequest) returns (stream SubmitTaskResponse) {}
rpc SubmitTask(SubmitTaskRequest) returns (SubmitTaskResponse) {}
rpc ProofChannel(stream ProofChannelRequest) returns (stream ProofChannelResponse) {}
}

0 comments on commit 923035b

Please sign in to comment.