Added grpc web service

This commit is contained in:
2024-11-17 11:07:26 -05:00
parent 1f1cd68192
commit 1ad11d7e08
10 changed files with 590 additions and 30 deletions

24
grpc/imgurl.proto Normal file
View File

@@ -0,0 +1,24 @@
option go_package = "github.com/siteworxpro/img-proxy-url-generator/grpc";
message UrlRequest {
required string image = 1;
repeated string params = 2;
optional Format format = 3;
}
enum Format {
JPG = 1;
PNG = 2;
BMP = 3;
WEBP = 4;
GIF = 5;
ICO = 6;
}
message UrlResponse {
required string url = 1;
}
service Generator {
rpc Generate (UrlRequest) returns (UrlResponse) {}
}