2020-09-16 09:09:31 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
option go_package = "./pb";
|
|
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
|
|
import "model_size_capacity.proto";
|
2020-09-17 10:15:55 +08:00
|
|
|
import "rpc_messages.proto";
|
2020-09-16 09:09:31 +08:00
|
|
|
|
|
|
|
|
service HTTPGzipService {
|
|
|
|
|
// 创建Gzip配置
|
|
|
|
|
rpc createHTTPGzip (CreateHTTPGzipRequest) returns (CreateHTTPGzipResponse);
|
|
|
|
|
|
|
|
|
|
// 查找Gzip配置
|
|
|
|
|
rpc findEnabledHTTPGzipConfig (FindEnabledGzipConfigRequest) returns (FindEnabledGzipConfigResponse);
|
|
|
|
|
|
|
|
|
|
// 修改Gzip配置
|
2020-09-17 10:15:55 +08:00
|
|
|
rpc updateHTTPGzip (UpdateHTTPGzipRequest) returns (RPCUpdateSuccess);
|
2020-09-16 09:09:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建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 {
|
2020-09-21 19:52:10 +08:00
|
|
|
bytes gzipJSON = 1;
|
2020-09-16 09:09:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改Gzip配置
|
|
|
|
|
message UpdateHTTPGzipRequest {
|
|
|
|
|
int64 gzipId = 1;
|
|
|
|
|
int32 level = 2;
|
|
|
|
|
SizeCapacity minLength = 3;
|
|
|
|
|
SizeCapacity maxLength = 4;
|
|
|
|
|
}
|