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