Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: changes to client side of connection #11

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
montekki marked this conversation as resolved.
Show resolved Hide resolved
}

message ProofChannelResponse {}

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