You've already forked img-proxy-url-generator
27 lines
469 B
Protocol Buffer
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) {}
|
|
} |