Files
EdgeCommon/pkg/rpc/protos/service_http_rewrite_rule.proto

45 lines
958 B
Protocol Buffer
Raw Normal View History

2020-09-28 16:25:49 +08:00
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/rpc_messages.proto";
2020-09-28 16:25:49 +08:00
service HTTPRewriteRuleService {
// 创建重写规则
rpc createHTTPRewriteRule (CreateHTTPRewriteRuleRequest) returns (CreateHTTPRewriteRuleResponse);
// 修改重写规则
rpc updateHTTPRewriteRule (UpdateHTTPRewriteRuleRequest) returns (RPCSuccess);
2020-09-28 16:25:49 +08:00
}
// 创建重写规则
message CreateHTTPRewriteRuleRequest {
string pattern = 1;
string replace = 2;
string mode = 3;
int32 redirectStatus = 4;
bool isBreak = 5;
string proxyHost = 6;
bool isOn = 7;
2020-09-28 18:22:37 +08:00
bool withQuery = 8;
bytes condsJSON = 9;
2020-09-28 16:25:49 +08:00
}
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;
2020-09-28 18:22:37 +08:00
bool withQuery = 9;
bytes condsJSON = 10;
2020-09-28 16:25:49 +08:00
}