task proto added
This commit is contained in:
parent
bdf8d0fa84
commit
9ddeefd34b
3 changed files with 391 additions and 0 deletions
22
proto/taskTransport.proto
Normal file
22
proto/taskTransport.proto
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue