mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-15 21:36:35 +08:00
阶段性提交
This commit is contained in:
49
pkg/rpc/protos/service_http_gzip.proto
Normal file
49
pkg/rpc/protos/service_http_gzip.proto
Normal file
@@ -0,0 +1,49 @@
|
||||
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 {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user