Files
img-proxy-url-generator/grpc/imgurl.proto
2024-11-17 11:22:49 -05:00

27 lines
469 B
Protocol Buffer

syntax = "proto3";
option go_package = "github.com/siteworxpro/img-proxy-url-generator/grpc";
option php_namespace = "Siteworx\\Library\\Integrations\\ImgProxy";
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) {}
}