mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
49 lines
965 B
Protocol Buffer
49 lines
965 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = "./pb";
|
|
|
|
package pb;
|
|
|
|
import "model_size_capacity.proto";
|
|
|
|
service HTTPGzipService {
|
|
// 创建Gzip配置
|
|
rpc createHTTPGzip (CreateHTTPGzipRequest) returns (CreateHTTPGzipResponse);
|
|
|
|
// 查找Gzip配置
|
|
rpc findEnabledHTTPGzipConfig (FindEnabledGzipConfigRequest) returns (FindEnabledGzipConfigResponse);
|
|
|
|
// 修改Gzip配置
|
|
rpc updateHTTPGzip (UpdateHTTPGzipRequest) returns (UpdateHTTPGzipResponse);
|
|
}
|
|
|
|
// 创建Gzip配置
|
|
message CreateHTTPGzipRequest {
|
|
int32 level = 1;
|
|
SizeCapacity minLength = 2;
|
|
SizeCapacity maxLength = 3;
|
|
}
|
|
|
|
message CreateHTTPGzipResponse {
|
|
int64 gzipId = 1;
|
|
}
|
|
|
|
// 查找Gzip配置
|
|
message FindEnabledGzipConfigRequest {
|
|
int64 gzipId = 1;
|
|
}
|
|
|
|
message FindEnabledGzipConfigResponse {
|
|
bytes config = 1;
|
|
}
|
|
|
|
// 修改Gzip配置
|
|
message UpdateHTTPGzipRequest {
|
|
int64 gzipId = 1;
|
|
int32 level = 2;
|
|
SizeCapacity minLength = 3;
|
|
SizeCapacity maxLength = 4;
|
|
}
|
|
|
|
message UpdateHTTPGzipResponse {
|
|
|
|
} |