23 lines
445 B
Protocol Buffer
23 lines
445 B
Protocol Buffer
|
|
syntax = "proto3";
|
||
|
|
import "google/protobuf/empty.proto";
|
||
|
|
|
||
|
|
package taskProcessor;
|
||
|
|
option go_package = "./taskProcessor";
|
||
|
|
|
||
|
|
|
||
|
|
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);
|
||
|
|
}
|