2020-09-28 16:25:49 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
2023-08-06 23:36:50 +08:00
|
|
|
// protoc-gen-go v1.31.0
|
2022-03-04 15:44:39 +08:00
|
|
|
// protoc v3.19.4
|
2020-09-28 16:25:49 +08:00
|
|
|
// source: service_http_rewrite_rule.proto
|
|
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
|
reflect "reflect"
|
|
|
|
|
sync "sync"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 创建重写规则
|
|
|
|
|
type CreateHTTPRewriteRuleRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
|
|
|
|
|
Replace string `protobuf:"bytes,2,opt,name=replace,proto3" json:"replace,omitempty"`
|
|
|
|
|
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
|
RedirectStatus int32 `protobuf:"varint,4,opt,name=redirectStatus,proto3" json:"redirectStatus,omitempty"`
|
|
|
|
|
IsBreak bool `protobuf:"varint,5,opt,name=isBreak,proto3" json:"isBreak,omitempty"`
|
|
|
|
|
ProxyHost string `protobuf:"bytes,6,opt,name=proxyHost,proto3" json:"proxyHost,omitempty"`
|
|
|
|
|
IsOn bool `protobuf:"varint,7,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
2020-09-28 18:22:37 +08:00
|
|
|
WithQuery bool `protobuf:"varint,8,opt,name=withQuery,proto3" json:"withQuery,omitempty"`
|
2021-06-09 21:43:58 +08:00
|
|
|
CondsJSON []byte `protobuf:"bytes,9,opt,name=condsJSON,proto3" json:"condsJSON,omitempty"`
|
2020-09-28 16:25:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) Reset() {
|
|
|
|
|
*x = CreateHTTPRewriteRuleRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_http_rewrite_rule_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateHTTPRewriteRuleRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_http_rewrite_rule_proto_msgTypes[0]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CreateHTTPRewriteRuleRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateHTTPRewriteRuleRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_http_rewrite_rule_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetPattern() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Pattern
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetReplace() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Replace
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetMode() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Mode
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetRedirectStatus() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RedirectStatus
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetIsBreak() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsBreak
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetProxyHost() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ProxyHost
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetIsOn() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsOn
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-28 18:22:37 +08:00
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetWithQuery() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.WithQuery
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-09 21:43:58 +08:00
|
|
|
func (x *CreateHTTPRewriteRuleRequest) GetCondsJSON() []byte {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.CondsJSON
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-28 16:25:49 +08:00
|
|
|
type CreateHTTPRewriteRuleResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
RewriteRuleId int64 `protobuf:"varint,1,opt,name=rewriteRuleId,proto3" json:"rewriteRuleId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleResponse) Reset() {
|
|
|
|
|
*x = CreateHTTPRewriteRuleResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_http_rewrite_rule_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleResponse) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*CreateHTTPRewriteRuleResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_http_rewrite_rule_proto_msgTypes[1]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CreateHTTPRewriteRuleResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateHTTPRewriteRuleResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_http_rewrite_rule_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateHTTPRewriteRuleResponse) GetRewriteRuleId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RewriteRuleId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改重写规则
|
|
|
|
|
type UpdateHTTPRewriteRuleRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
RewriteRuleId int64 `protobuf:"varint,1,opt,name=rewriteRuleId,proto3" json:"rewriteRuleId,omitempty"`
|
|
|
|
|
Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"`
|
|
|
|
|
Replace string `protobuf:"bytes,3,opt,name=replace,proto3" json:"replace,omitempty"`
|
|
|
|
|
Mode string `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
|
RedirectStatus int32 `protobuf:"varint,5,opt,name=redirectStatus,proto3" json:"redirectStatus,omitempty"`
|
|
|
|
|
IsBreak bool `protobuf:"varint,6,opt,name=isBreak,proto3" json:"isBreak,omitempty"`
|
|
|
|
|
ProxyHost string `protobuf:"bytes,7,opt,name=proxyHost,proto3" json:"proxyHost,omitempty"`
|
|
|
|
|
IsOn bool `protobuf:"varint,8,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
2020-09-28 18:22:37 +08:00
|
|
|
WithQuery bool `protobuf:"varint,9,opt,name=withQuery,proto3" json:"withQuery,omitempty"`
|
2021-06-09 21:43:58 +08:00
|
|
|
CondsJSON []byte `protobuf:"bytes,10,opt,name=condsJSON,proto3" json:"condsJSON,omitempty"`
|
2020-09-28 16:25:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) Reset() {
|
|
|
|
|
*x = UpdateHTTPRewriteRuleRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_service_http_rewrite_rule_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*UpdateHTTPRewriteRuleRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_service_http_rewrite_rule_proto_msgTypes[2]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use UpdateHTTPRewriteRuleRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*UpdateHTTPRewriteRuleRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_service_http_rewrite_rule_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetRewriteRuleId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RewriteRuleId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetPattern() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Pattern
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetReplace() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Replace
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetMode() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Mode
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetRedirectStatus() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RedirectStatus
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetIsBreak() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsBreak
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetProxyHost() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ProxyHost
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetIsOn() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsOn
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-28 18:22:37 +08:00
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetWithQuery() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.WithQuery
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-09 21:43:58 +08:00
|
|
|
func (x *UpdateHTTPRewriteRuleRequest) GetCondsJSON() []byte {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.CondsJSON
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-28 16:25:49 +08:00
|
|
|
var File_service_http_rewrite_rule_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_service_http_rewrite_rule_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x1f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x72,
|
|
|
|
|
0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
2021-01-25 16:41:30 +08:00
|
|
|
0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70,
|
|
|
|
|
0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
2021-06-09 21:43:58 +08:00
|
|
|
0x22, 0x96, 0x02, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52,
|
2021-01-25 16:41:30 +08:00
|
|
|
0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72,
|
|
|
|
|
0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65,
|
|
|
|
|
0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x65, 0x64,
|
|
|
|
|
0x69, 0x72, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
|
0x05, 0x52, 0x0e, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
|
0x73, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x73, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x18, 0x05, 0x20, 0x01,
|
|
|
|
|
0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x70,
|
|
|
|
|
0x72, 0x6f, 0x78, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
|
|
|
|
0x70, 0x72, 0x6f, 0x78, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f,
|
|
|
|
|
0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x1c, 0x0a,
|
|
|
|
|
0x09, 0x77, 0x69, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08,
|
2021-06-09 21:43:58 +08:00
|
|
|
0x52, 0x09, 0x77, 0x69, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63,
|
|
|
|
|
0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09,
|
|
|
|
|
0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x45, 0x0a, 0x1d, 0x43, 0x72, 0x65,
|
2021-01-25 16:41:30 +08:00
|
|
|
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75,
|
2021-06-09 21:43:58 +08:00
|
|
|
0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65,
|
|
|
|
|
0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
0x03, 0x52, 0x0d, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64,
|
|
|
|
|
0x22, 0xbc, 0x02, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52,
|
|
|
|
|
0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65,
|
|
|
|
|
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74,
|
|
|
|
|
0x65, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65,
|
|
|
|
|
0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72,
|
|
|
|
|
0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
|
0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d,
|
|
|
|
|
0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12,
|
|
|
|
|
0x26, 0x0a, 0x0e, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
|
0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
|
|
|
|
|
0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x73, 0x42, 0x72, 0x65,
|
|
|
|
|
0x61, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x42, 0x72, 0x65, 0x61,
|
|
|
|
|
0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x18, 0x07,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x12,
|
|
|
|
|
0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69,
|
|
|
|
|
0x73, 0x4f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x69, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
|
|
|
0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x77, 0x69, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72,
|
|
|
|
|
0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0a,
|
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x32,
|
|
|
|
|
0xc1, 0x01, 0x0a, 0x16, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52,
|
|
|
|
|
0x75, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x63, 0x72,
|
|
|
|
|
0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52,
|
|
|
|
|
0x75, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48,
|
|
|
|
|
0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65,
|
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
|
2020-09-28 18:22:37 +08:00
|
|
|
0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65,
|
2021-06-09 21:43:58 +08:00
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61,
|
|
|
|
|
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c,
|
|
|
|
|
0x65, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
|
|
|
|
0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
|
0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63,
|
|
|
|
|
0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
|
|
|
0x74, 0x6f, 0x33,
|
2020-09-28 16:25:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
file_service_http_rewrite_rule_proto_rawDescOnce sync.Once
|
|
|
|
|
file_service_http_rewrite_rule_proto_rawDescData = file_service_http_rewrite_rule_proto_rawDesc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func file_service_http_rewrite_rule_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_service_http_rewrite_rule_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_service_http_rewrite_rule_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_http_rewrite_rule_proto_rawDescData)
|
|
|
|
|
})
|
|
|
|
|
return file_service_http_rewrite_rule_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_service_http_rewrite_rule_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
|
|
|
var file_service_http_rewrite_rule_proto_goTypes = []interface{}{
|
|
|
|
|
(*CreateHTTPRewriteRuleRequest)(nil), // 0: pb.CreateHTTPRewriteRuleRequest
|
|
|
|
|
(*CreateHTTPRewriteRuleResponse)(nil), // 1: pb.CreateHTTPRewriteRuleResponse
|
|
|
|
|
(*UpdateHTTPRewriteRuleRequest)(nil), // 2: pb.UpdateHTTPRewriteRuleRequest
|
2020-11-13 18:23:06 +08:00
|
|
|
(*RPCSuccess)(nil), // 3: pb.RPCSuccess
|
2020-09-28 16:25:49 +08:00
|
|
|
}
|
|
|
|
|
var file_service_http_rewrite_rule_proto_depIdxs = []int32{
|
|
|
|
|
0, // 0: pb.HTTPRewriteRuleService.createHTTPRewriteRule:input_type -> pb.CreateHTTPRewriteRuleRequest
|
|
|
|
|
2, // 1: pb.HTTPRewriteRuleService.updateHTTPRewriteRule:input_type -> pb.UpdateHTTPRewriteRuleRequest
|
|
|
|
|
1, // 2: pb.HTTPRewriteRuleService.createHTTPRewriteRule:output_type -> pb.CreateHTTPRewriteRuleResponse
|
2020-11-13 18:23:06 +08:00
|
|
|
3, // 3: pb.HTTPRewriteRuleService.updateHTTPRewriteRule:output_type -> pb.RPCSuccess
|
2020-09-28 16:25:49 +08:00
|
|
|
2, // [2:4] is the sub-list for method output_type
|
|
|
|
|
0, // [0:2] is the sub-list for method input_type
|
|
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
|
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:0] is the sub-list for field type_name
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_service_http_rewrite_rule_proto_init() }
|
|
|
|
|
func file_service_http_rewrite_rule_proto_init() {
|
|
|
|
|
if File_service_http_rewrite_rule_proto != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
2021-01-25 16:41:30 +08:00
|
|
|
file_models_rpc_messages_proto_init()
|
2020-09-28 16:25:49 +08:00
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_service_http_rewrite_rule_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CreateHTTPRewriteRuleRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_http_rewrite_rule_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CreateHTTPRewriteRuleResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_http_rewrite_rule_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*UpdateHTTPRewriteRuleRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_service_http_rewrite_rule_proto_rawDesc,
|
|
|
|
|
NumEnums: 0,
|
|
|
|
|
NumMessages: 3,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 1,
|
|
|
|
|
},
|
|
|
|
|
GoTypes: file_service_http_rewrite_rule_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_service_http_rewrite_rule_proto_depIdxs,
|
|
|
|
|
MessageInfos: file_service_http_rewrite_rule_proto_msgTypes,
|
|
|
|
|
}.Build()
|
|
|
|
|
File_service_http_rewrite_rule_proto = out.File
|
|
|
|
|
file_service_http_rewrite_rule_proto_rawDesc = nil
|
|
|
|
|
file_service_http_rewrite_rule_proto_goTypes = nil
|
|
|
|
|
file_service_http_rewrite_rule_proto_depIdxs = nil
|
|
|
|
|
}
|