Initial commit (code only without large binaries)
This commit is contained in:
46
EdgeCommon/pkg/rpc/protos/service_http_rewrite_rule.proto
Normal file
46
EdgeCommon/pkg/rpc/protos/service_http_rewrite_rule.proto
Normal file
@@ -0,0 +1,46 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// 重写规则服务
|
||||
service HTTPRewriteRuleService {
|
||||
// 创建重写规则
|
||||
rpc createHTTPRewriteRule (CreateHTTPRewriteRuleRequest) returns (CreateHTTPRewriteRuleResponse);
|
||||
|
||||
// 修改重写规则
|
||||
rpc updateHTTPRewriteRule (UpdateHTTPRewriteRuleRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 创建重写规则
|
||||
message CreateHTTPRewriteRuleRequest {
|
||||
string pattern = 1;
|
||||
string replace = 2;
|
||||
string mode = 3;
|
||||
int32 redirectStatus = 4;
|
||||
bool isBreak = 5;
|
||||
string proxyHost = 6;
|
||||
bool isOn = 7;
|
||||
bool withQuery = 8;
|
||||
bytes condsJSON = 9;
|
||||
}
|
||||
|
||||
message CreateHTTPRewriteRuleResponse {
|
||||
int64 rewriteRuleId = 1;
|
||||
}
|
||||
|
||||
// 修改重写规则
|
||||
message UpdateHTTPRewriteRuleRequest {
|
||||
int64 rewriteRuleId = 1;
|
||||
string pattern = 2;
|
||||
string replace = 3;
|
||||
string mode = 4;
|
||||
int32 redirectStatus = 5;
|
||||
bool isBreak = 6;
|
||||
string proxyHost = 7;
|
||||
bool isOn = 8;
|
||||
bool withQuery = 9;
|
||||
bytes condsJSON = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user