Files
img-proxy-url-generator/grpc/imgurl.proto
Ron Rise 0ab36c5ea6
Some checks failed
Go Tests / build (1.22.x) (push) Failing after 1m43s
grpc
2024-11-17 12:32:29 -05:00

29 lines
521 B
Protocol Buffer

syntax = "proto3";
option go_package = "github.com/siteworxpro/img-proxy-url-generator/grpc";
option php_namespace = "SomeNamespace\\ImgProxy";
option php_metadata_namespace = "SomeNamespace\\ImgProxy\\Metadata";
message UrlRequest {
string image = 1;
repeated string params = 2;
optional Format format = 3;
}
enum Format {
JPG = 0;
PNG = 1;
BMP = 2;
WEBP = 3;
GIF = 4;
ICO = 5;
}
message UrlResponse {
string url = 1;
}
service Generator {
rpc Generate (UrlRequest) returns (UrlResponse) {}
}