added + rename

This commit is contained in:
nquidox 2026-02-18 17:35:37 +03:00
parent 25439eab5b
commit 1e2f442781
2 changed files with 30 additions and 2 deletions

22
proto/taskTransport.proto Normal file
View file

@ -0,0 +1,22 @@
syntax = "proto3";
import "google/protobuf/empty.proto";
package taskTransport;
option go_package = "/pkg/taskTransport/v1;taskTransportV1";
message Task{
string merch_uuid = 1;
map<string, string> origins = 2;
}
message Result{
string merch_uuid = 1;
string origin_name = 2;
int32 price = 3;
}
service TaskProcessor {
rpc RequestTasks(google.protobuf.Empty) returns (stream Task);
rpc SendResults(stream Result) returns (google.protobuf.Empty);
}