huge refactor
This commit is contained in:
parent
8d6c2b6687
commit
38829c0179
23 changed files with 544 additions and 141 deletions
19
proto/scrapper.proto
Normal file
19
proto/scrapper.proto
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package surugayaScrapper;
|
||||
|
||||
option go_package = "./surugayaScrapper";
|
||||
|
||||
message Task{
|
||||
string merch_uuid = 1;
|
||||
string link = 2;
|
||||
}
|
||||
|
||||
message Result{
|
||||
string merch_uuid = 1;
|
||||
int32 price = 2;
|
||||
}
|
||||
|
||||
service SurugayaScrapper {
|
||||
rpc ProcessTasks (stream Task) returns (stream Result);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue