Skip to content

zardan4/products-parser-grpc

Repository files navigation

products-parser-grpc

from course

Running:

make run # runs docker container
make grpc-client # runs grpc client to test request to server

Methods:

// parses csv file and adds data to database
// returns result(how much added etc)

// args in FetchRequest:
// url(string) - string to server where csv is located
rpc Fetch(FetchRequest) returns (FetchResponse) {}; 
// returns list of all products

// supported parameters in ListRequest:
// reversed(bool) - should returned list be reversed
// mode(SortingMode(string)) - type of sorting the returned list
// pageSize(int64) - how much products should be returned
// pageOffset(int64) - how much products has to be skipped
rpc List(ListRequest) returns (ListResponse) {};

About

from golang course :)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published