mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-05 22:30:25 +08:00
增加CORS自适应跨域
This commit is contained in:
@@ -744,6 +744,7 @@
|
|||||||
"doc": "创建一组IP",
|
"doc": "创建一组IP",
|
||||||
"roles": [
|
"roles": [
|
||||||
"dns",
|
"dns",
|
||||||
|
"node",
|
||||||
"admin"
|
"admin"
|
||||||
],
|
],
|
||||||
"isDeprecated": false
|
"isDeprecated": false
|
||||||
@@ -756,6 +757,7 @@
|
|||||||
"doc": "查询最新的IP",
|
"doc": "查询最新的IP",
|
||||||
"roles": [
|
"roles": [
|
||||||
"dns",
|
"dns",
|
||||||
|
"node",
|
||||||
"admin"
|
"admin"
|
||||||
],
|
],
|
||||||
"isDeprecated": false
|
"isDeprecated": false
|
||||||
@@ -2441,6 +2443,18 @@
|
|||||||
"user"
|
"user"
|
||||||
],
|
],
|
||||||
"isDeprecated": false
|
"isDeprecated": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "updateHTTPHeaderPolicyCORS",
|
||||||
|
"requestMessageName": "UpdateHTTPHeaderPolicyCORSRequest",
|
||||||
|
"responseMessageName": "RPCSuccess",
|
||||||
|
"code": "rpc updateHTTPHeaderPolicyCORS(UpdateHTTPHeaderPolicyCORSRequest) returns (RPCSuccess);",
|
||||||
|
"doc": "修改策略CORS设置",
|
||||||
|
"roles": [
|
||||||
|
"admin",
|
||||||
|
"user"
|
||||||
|
],
|
||||||
|
"isDeprecated": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"filename": "service_http_header_policy.proto",
|
"filename": "service_http_header_policy.proto",
|
||||||
@@ -9922,7 +9936,9 @@
|
|||||||
"responseMessageName": "RPCSuccess",
|
"responseMessageName": "RPCSuccess",
|
||||||
"code": "rpc updateServerUser(UpdateServerUserRequest) returns (RPCSuccess);",
|
"code": "rpc updateServerUser(UpdateServerUserRequest) returns (RPCSuccess);",
|
||||||
"doc": "修改服务所属用户",
|
"doc": "修改服务所属用户",
|
||||||
"roles": [],
|
"roles": [
|
||||||
|
"admin"
|
||||||
|
],
|
||||||
"isDeprecated": false
|
"isDeprecated": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -13586,7 +13602,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CreateHTTPHeaderPolicyResponse",
|
"name": "CreateHTTPHeaderPolicyResponse",
|
||||||
"code": "message CreateHTTPHeaderPolicyResponse {\n\tint64 headerPolicyId = 1;\n}",
|
"code": "message CreateHTTPHeaderPolicyResponse {\n\tint64 httpHeaderPolicyId = 1;\n}",
|
||||||
"doc": ""
|
"doc": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -16331,12 +16347,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "FindEnabledHTTPHeaderPolicyConfigRequest",
|
"name": "FindEnabledHTTPHeaderPolicyConfigRequest",
|
||||||
"code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 headerPolicyId = 1;\n}",
|
"code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 httpHeaderPolicyId = 1;\n}",
|
||||||
"doc": "查找策略"
|
"doc": "查找策略"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "FindEnabledHTTPHeaderPolicyConfigResponse",
|
"name": "FindEnabledHTTPHeaderPolicyConfigResponse",
|
||||||
"code": "message FindEnabledHTTPHeaderPolicyConfigResponse {\n\tbytes headerPolicyJSON = 1;\n}",
|
"code": "message FindEnabledHTTPHeaderPolicyConfigResponse {\n\tbytes httpHeaderPolicyJSON = 1;\n}",
|
||||||
"doc": ""
|
"doc": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -19926,27 +19942,32 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UpdateHTTPHeaderPolicyAddingHeadersRequest",
|
"name": "UpdateHTTPHeaderPolicyAddingHeadersRequest",
|
||||||
"code": "message UpdateHTTPHeaderPolicyAddingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
"code": "message UpdateHTTPHeaderPolicyAddingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
||||||
"doc": "修改AddHeaders"
|
"doc": "修改AddHeaders"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UpdateHTTPHeaderPolicyAddingTrailersRequest",
|
"name": "UpdateHTTPHeaderPolicyAddingTrailersRequest",
|
||||||
"code": "message UpdateHTTPHeaderPolicyAddingTrailersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
"code": "message UpdateHTTPHeaderPolicyAddingTrailersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
||||||
"doc": "修改AddTrailers"
|
"doc": "修改AddTrailers"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "UpdateHTTPHeaderPolicyCORSRequest",
|
||||||
|
"code": "message UpdateHTTPHeaderPolicyCORSRequest {\n\tint64 httpHeaderPolicyId = 1;\n\tbytes corsJSON = 2;\n}",
|
||||||
|
"doc": "修改策略CORS设置"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "UpdateHTTPHeaderPolicyDeletingHeadersRequest",
|
"name": "UpdateHTTPHeaderPolicyDeletingHeadersRequest",
|
||||||
"code": "message UpdateHTTPHeaderPolicyDeletingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\trepeated string headerNames = 2;\n}",
|
"code": "message UpdateHTTPHeaderPolicyDeletingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\trepeated string headerNames = 2;\n}",
|
||||||
"doc": "修改删除的Headers"
|
"doc": "修改删除的Headers"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UpdateHTTPHeaderPolicyReplacingHeadersRequest",
|
"name": "UpdateHTTPHeaderPolicyReplacingHeadersRequest",
|
||||||
"code": "message UpdateHTTPHeaderPolicyReplacingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
"code": "message UpdateHTTPHeaderPolicyReplacingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
||||||
"doc": "修改ReplaceHeaders"
|
"doc": "修改ReplaceHeaders"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UpdateHTTPHeaderPolicySettingHeadersRequest",
|
"name": "UpdateHTTPHeaderPolicySettingHeadersRequest",
|
||||||
"code": "message UpdateHTTPHeaderPolicySettingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
"code": "message UpdateHTTPHeaderPolicySettingHeadersRequest {\n\tint64 httpHeaderPolicyId = 1;\n\tbytes headersJSON = 2;\n}",
|
||||||
"doc": "修改SetHeaders"
|
"doc": "修改SetHeaders"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ type FindEnabledHTTPHeaderPolicyConfigRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyId int64 `protobuf:"varint,1,opt,name=headerPolicyId,proto3" json:"headerPolicyId,omitempty"`
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) Reset() {
|
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) Reset() {
|
||||||
@@ -70,9 +70,9 @@ func (*FindEnabledHTTPHeaderPolicyConfigRequest) Descriptor() ([]byte, []int) {
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{0}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) GetHeaderPolicyId() int64 {
|
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) GetHttpHeaderPolicyId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyId
|
return x.HttpHeaderPolicyId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,7 @@ type FindEnabledHTTPHeaderPolicyConfigResponse struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyJSON []byte `protobuf:"bytes,1,opt,name=headerPolicyJSON,proto3" json:"headerPolicyJSON,omitempty"`
|
HttpHeaderPolicyJSON []byte `protobuf:"bytes,1,opt,name=httpHeaderPolicyJSON,proto3" json:"httpHeaderPolicyJSON,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) Reset() {
|
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) Reset() {
|
||||||
@@ -117,9 +117,9 @@ func (*FindEnabledHTTPHeaderPolicyConfigResponse) Descriptor() ([]byte, []int) {
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{1}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) GetHeaderPolicyJSON() []byte {
|
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) GetHttpHeaderPolicyJSON() []byte {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyJSON
|
return x.HttpHeaderPolicyJSON
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -168,7 +168,7 @@ type CreateHTTPHeaderPolicyResponse struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyId int64 `protobuf:"varint,1,opt,name=headerPolicyId,proto3" json:"headerPolicyId,omitempty"`
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateHTTPHeaderPolicyResponse) Reset() {
|
func (x *CreateHTTPHeaderPolicyResponse) Reset() {
|
||||||
@@ -203,9 +203,9 @@ func (*CreateHTTPHeaderPolicyResponse) Descriptor() ([]byte, []int) {
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{3}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateHTTPHeaderPolicyResponse) GetHeaderPolicyId() int64 {
|
func (x *CreateHTTPHeaderPolicyResponse) GetHttpHeaderPolicyId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyId
|
return x.HttpHeaderPolicyId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -216,8 +216,8 @@ type UpdateHTTPHeaderPolicyAddingHeadersRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyId int64 `protobuf:"varint,1,opt,name=headerPolicyId,proto3" json:"headerPolicyId,omitempty"`
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) Reset() {
|
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) Reset() {
|
||||||
@@ -252,9 +252,9 @@ func (*UpdateHTTPHeaderPolicyAddingHeadersRequest) Descriptor() ([]byte, []int)
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{4}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) GetHeaderPolicyId() int64 {
|
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyId
|
return x.HttpHeaderPolicyId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -272,8 +272,8 @@ type UpdateHTTPHeaderPolicySettingHeadersRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyId int64 `protobuf:"varint,1,opt,name=headerPolicyId,proto3" json:"headerPolicyId,omitempty"`
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) Reset() {
|
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) Reset() {
|
||||||
@@ -308,9 +308,9 @@ func (*UpdateHTTPHeaderPolicySettingHeadersRequest) Descriptor() ([]byte, []int)
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{5}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) GetHeaderPolicyId() int64 {
|
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyId
|
return x.HttpHeaderPolicyId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -328,8 +328,8 @@ type UpdateHTTPHeaderPolicyAddingTrailersRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyId int64 `protobuf:"varint,1,opt,name=headerPolicyId,proto3" json:"headerPolicyId,omitempty"`
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) Reset() {
|
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) Reset() {
|
||||||
@@ -364,9 +364,9 @@ func (*UpdateHTTPHeaderPolicyAddingTrailersRequest) Descriptor() ([]byte, []int)
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{6}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) GetHeaderPolicyId() int64 {
|
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) GetHttpHeaderPolicyId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyId
|
return x.HttpHeaderPolicyId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -384,8 +384,8 @@ type UpdateHTTPHeaderPolicyReplacingHeadersRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyId int64 `protobuf:"varint,1,opt,name=headerPolicyId,proto3" json:"headerPolicyId,omitempty"`
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) Reset() {
|
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) Reset() {
|
||||||
@@ -420,9 +420,9 @@ func (*UpdateHTTPHeaderPolicyReplacingHeadersRequest) Descriptor() ([]byte, []in
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{7}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) GetHeaderPolicyId() int64 {
|
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyId
|
return x.HttpHeaderPolicyId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -440,8 +440,8 @@ type UpdateHTTPHeaderPolicyDeletingHeadersRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
HeaderPolicyId int64 `protobuf:"varint,1,opt,name=headerPolicyId,proto3" json:"headerPolicyId,omitempty"`
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
HeaderNames []string `protobuf:"bytes,2,rep,name=headerNames,proto3" json:"headerNames,omitempty"`
|
HeaderNames []string `protobuf:"bytes,2,rep,name=headerNames,proto3" json:"headerNames,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) Reset() {
|
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) Reset() {
|
||||||
@@ -476,9 +476,9 @@ func (*UpdateHTTPHeaderPolicyDeletingHeadersRequest) Descriptor() ([]byte, []int
|
|||||||
return file_service_http_header_policy_proto_rawDescGZIP(), []int{8}
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) GetHeaderPolicyId() int64 {
|
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.HeaderPolicyId
|
return x.HttpHeaderPolicyId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -490,6 +490,62 @@ func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) GetHeaderNames() []string
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修改策略CORS设置
|
||||||
|
type UpdateHTTPHeaderPolicyCORSRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
||||||
|
CorsJSON []byte `protobuf:"bytes,2,opt,name=corsJSON,proto3" json:"corsJSON,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) Reset() {
|
||||||
|
*x = UpdateHTTPHeaderPolicyCORSRequest{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_service_http_header_policy_proto_msgTypes[9]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateHTTPHeaderPolicyCORSRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_service_http_header_policy_proto_msgTypes[9]
|
||||||
|
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 UpdateHTTPHeaderPolicyCORSRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UpdateHTTPHeaderPolicyCORSRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{9}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) GetHttpHeaderPolicyId() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.HttpHeaderPolicyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) GetCorsJSON() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.CorsJSON
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_service_http_header_policy_proto protoreflect.FileDescriptor
|
var File_service_http_header_policy_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_service_http_header_policy_proto_rawDesc = []byte{
|
var file_service_http_header_policy_proto_rawDesc = []byte{
|
||||||
@@ -497,112 +553,129 @@ var file_service_http_header_policy_proto_rawDesc = []byte{
|
|||||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f,
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72,
|
0x74, 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,
|
0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x6f, 0x22, 0x52, 0x0a, 0x28, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
0x6f, 0x22, 0x5a, 0x0a, 0x28, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||||||
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
||||||
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a,
|
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a,
|
||||||
0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18,
|
0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48,
|
||||||
0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x57, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x5f, 0x0a,
|
||||||
0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
0x29, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50,
|
||||||
0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66,
|
||||||
0x73, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69,
|
0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x14, 0x68, 0x74,
|
||||||
0x63, 0x79, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x68, 0x65,
|
0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x53,
|
||||||
|
0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65,
|
||||||
0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x1f,
|
0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x1f,
|
||||||
0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64,
|
0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64,
|
||||||
0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
||||||
0x48, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61,
|
0x50, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61,
|
||||||
0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
0x65, 0x12, 0x26, 0x0a, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
0x65, 0x12, 0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50,
|
||||||
0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65,
|
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68,
|
||||||
0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x2a, 0x55, 0x70, 0x64,
|
0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49,
|
||||||
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
0x64, 0x22, 0x7e, 0x0a, 0x2a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
|
||||||
0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e,
|
||||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65,
|
0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||||
0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
||||||
0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12,
|
0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74, 0x74,
|
||||||
|
0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12,
|
||||||
0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02,
|
0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02,
|
||||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f,
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f,
|
||||||
0x4e, 0x22, 0x77, 0x0a, 0x2b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
|
0x4e, 0x22, 0x7f, 0x0a, 0x2b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
|
||||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69,
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69,
|
||||||
0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
0x12, 0x26, 0x0a, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
0x12, 0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
||||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74,
|
||||||
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64,
|
0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64,
|
||||||
0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x68,
|
0x12, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
|
||||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x77, 0x0a, 0x2b, 0x55, 0x70,
|
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53,
|
||||||
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
0x4f, 0x4e, 0x22, 0x7f, 0x0a, 0x2b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
||||||
0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65,
|
|
||||||
0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x68, 0x65, 0x61,
|
|
||||||
0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
||||||
0x03, 0x52, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49,
|
|
||||||
0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e,
|
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a,
|
|
||||||
0x53, 0x4f, 0x4e, 0x22, 0x79, 0x0a, 0x2d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
|
||||||
0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70,
|
|
||||||
0x6c, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71,
|
|
||||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
|
||||||
0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x68, 0x65,
|
|
||||||
0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b,
|
|
||||||
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
||||||
0x0c, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x78,
|
|
||||||
0x0a, 0x2c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64,
|
|
||||||
0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67,
|
|
||||||
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26,
|
|
||||||
0x0a, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
|
||||||
0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
||||||
0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x65, 0x61,
|
|
||||||
0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x32, 0x8e, 0x06, 0x0a, 0x17, 0x48, 0x54, 0x54,
|
|
||||||
0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72,
|
|
||||||
0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
|
|
||||||
0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
|
||||||
0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e,
|
|
||||||
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48,
|
|
||||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
|
||||||
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
|
||||||
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61,
|
|
||||||
0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
|
|
||||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74,
|
|
||||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
|
||||||
0x79, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
|
||||||
0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71,
|
|
||||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
||||||
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
|
||||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x23, 0x75, 0x70, 0x64, 0x61,
|
|
||||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69,
|
|
||||||
0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12,
|
|
||||||
0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
|
|
||||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e,
|
|
||||||
0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
||||||
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
|
|
||||||
0x67, 0x0a, 0x24, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61,
|
|
||||||
0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
|
|
||||||
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
|
|
||||||
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
|
||||||
0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
||||||
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
|
|
||||||
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x67, 0x0a, 0x24, 0x75, 0x70, 0x64, 0x61,
|
|
||||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69,
|
|
||||||
0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73,
|
|
||||||
0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
|
||||||
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69,
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69,
|
||||||
0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
|
0x74, 0x12, 0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50,
|
||||||
0x73, 0x12, 0x6b, 0x0a, 0x26, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
|
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68,
|
||||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x61,
|
0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49,
|
||||||
0x63, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x70, 0x62,
|
0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e,
|
||||||
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x4a,
|
||||||
0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x69, 0x6e, 0x67,
|
0x53, 0x4f, 0x4e, 0x22, 0x81, 0x01, 0x0a, 0x2d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||||
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e,
|
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,
|
||||||
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x69,
|
0x70, 0x6c, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65,
|
||||||
0x0a, 0x25, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64,
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61,
|
||||||
0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67,
|
0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
|
0x03, 0x52, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
||||||
|
0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
|
||||||
|
0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x64,
|
||||||
|
0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x80, 0x01, 0x0a, 0x2c, 0x55, 0x70, 0x64, 0x61,
|
||||||
|
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69,
|
||||||
|
0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70,
|
||||||
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x64,
|
||||||
|
0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x68,
|
||||||
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x6f, 0x0a, 0x21, 0x55, 0x70,
|
||||||
|
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
||||||
|
0x6c, 0x69, 0x63, 0x79, 0x43, 0x4f, 0x52, 0x53, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||||
|
0x2e, 0x0a, 0x12, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
||||||
|
0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x68, 0x74, 0x74,
|
||||||
|
0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12,
|
||||||
|
0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
|
0x0c, 0x52, 0x08, 0x63, 0x6f, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0xe3, 0x06, 0x0a, 0x17,
|
||||||
|
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
||||||
|
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64,
|
||||||
|
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||||
|
0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e,
|
||||||
|
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
|
||||||
|
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f,
|
||||||
|
0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62,
|
||||||
|
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50,
|
||||||
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66,
|
||||||
|
0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x63, 0x72,
|
||||||
|
0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f,
|
||||||
|
0x6c, 0x69, 0x63, 0x79, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||||
|
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
||||||
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
|
||||||
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c,
|
||||||
0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65,
|
0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x23, 0x75,
|
||||||
0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50,
|
||||||
0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
|
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||||
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x72, 0x73, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||||
|
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64,
|
||||||
|
0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
|
||||||
|
0x73, 0x73, 0x12, 0x67, 0x0a, 0x24, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
||||||
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74,
|
||||||
|
0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e,
|
||||||
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61,
|
||||||
|
0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
|
||||||
|
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x67, 0x0a, 0x24, 0x75,
|
||||||
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50,
|
||||||
|
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c,
|
||||||
|
0x65, 0x72, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||||
|
0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x41,
|
||||||
|
0x64, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71,
|
||||||
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
|
||||||
|
0x63, 0x65, 0x73, 0x73, 0x12, 0x6b, 0x0a, 0x26, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||||
|
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,
|
||||||
|
0x70, 0x6c, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x31,
|
||||||
|
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65,
|
||||||
|
0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63,
|
||||||
|
0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
|
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
|
||||||
|
0x73, 0x12, 0x69, 0x0a, 0x25, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48,
|
||||||
|
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
||||||
|
0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x30, 0x2e, 0x70, 0x62, 0x2e,
|
||||||
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x48, 0x65,
|
||||||
|
0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70,
|
||||||
|
0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x53, 0x0a, 0x1a,
|
||||||
|
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x4f, 0x52, 0x53, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e,
|
||||||
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x4f, 0x52, 0x53, 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,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -617,7 +690,7 @@ func file_service_http_header_policy_proto_rawDescGZIP() []byte {
|
|||||||
return file_service_http_header_policy_proto_rawDescData
|
return file_service_http_header_policy_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_service_http_header_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
var file_service_http_header_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||||
var file_service_http_header_policy_proto_goTypes = []interface{}{
|
var file_service_http_header_policy_proto_goTypes = []interface{}{
|
||||||
(*FindEnabledHTTPHeaderPolicyConfigRequest)(nil), // 0: pb.FindEnabledHTTPHeaderPolicyConfigRequest
|
(*FindEnabledHTTPHeaderPolicyConfigRequest)(nil), // 0: pb.FindEnabledHTTPHeaderPolicyConfigRequest
|
||||||
(*FindEnabledHTTPHeaderPolicyConfigResponse)(nil), // 1: pb.FindEnabledHTTPHeaderPolicyConfigResponse
|
(*FindEnabledHTTPHeaderPolicyConfigResponse)(nil), // 1: pb.FindEnabledHTTPHeaderPolicyConfigResponse
|
||||||
@@ -628,28 +701,31 @@ var file_service_http_header_policy_proto_goTypes = []interface{}{
|
|||||||
(*UpdateHTTPHeaderPolicyAddingTrailersRequest)(nil), // 6: pb.UpdateHTTPHeaderPolicyAddingTrailersRequest
|
(*UpdateHTTPHeaderPolicyAddingTrailersRequest)(nil), // 6: pb.UpdateHTTPHeaderPolicyAddingTrailersRequest
|
||||||
(*UpdateHTTPHeaderPolicyReplacingHeadersRequest)(nil), // 7: pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
|
(*UpdateHTTPHeaderPolicyReplacingHeadersRequest)(nil), // 7: pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
|
||||||
(*UpdateHTTPHeaderPolicyDeletingHeadersRequest)(nil), // 8: pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
|
(*UpdateHTTPHeaderPolicyDeletingHeadersRequest)(nil), // 8: pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
|
||||||
(*RPCSuccess)(nil), // 9: pb.RPCSuccess
|
(*UpdateHTTPHeaderPolicyCORSRequest)(nil), // 9: pb.UpdateHTTPHeaderPolicyCORSRequest
|
||||||
|
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
|
||||||
}
|
}
|
||||||
var file_service_http_header_policy_proto_depIdxs = []int32{
|
var file_service_http_header_policy_proto_depIdxs = []int32{
|
||||||
0, // 0: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:input_type -> pb.FindEnabledHTTPHeaderPolicyConfigRequest
|
0, // 0: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:input_type -> pb.FindEnabledHTTPHeaderPolicyConfigRequest
|
||||||
2, // 1: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:input_type -> pb.CreateHTTPHeaderPolicyRequest
|
2, // 1: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:input_type -> pb.CreateHTTPHeaderPolicyRequest
|
||||||
4, // 2: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyAddingHeadersRequest
|
4, // 2: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyAddingHeadersRequest
|
||||||
5, // 3: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:input_type -> pb.UpdateHTTPHeaderPolicySettingHeadersRequest
|
5, // 3: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:input_type -> pb.UpdateHTTPHeaderPolicySettingHeadersRequest
|
||||||
6, // 4: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:input_type -> pb.UpdateHTTPHeaderPolicyAddingTrailersRequest
|
6, // 4: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:input_type -> pb.UpdateHTTPHeaderPolicyAddingTrailersRequest
|
||||||
7, // 5: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
|
7, // 5: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
|
||||||
8, // 6: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
|
8, // 6: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
|
||||||
1, // 7: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:output_type -> pb.FindEnabledHTTPHeaderPolicyConfigResponse
|
9, // 7: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:input_type -> pb.UpdateHTTPHeaderPolicyCORSRequest
|
||||||
3, // 8: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:output_type -> pb.CreateHTTPHeaderPolicyResponse
|
1, // 8: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:output_type -> pb.FindEnabledHTTPHeaderPolicyConfigResponse
|
||||||
9, // 9: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:output_type -> pb.RPCSuccess
|
3, // 9: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:output_type -> pb.CreateHTTPHeaderPolicyResponse
|
||||||
9, // 10: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:output_type -> pb.RPCSuccess
|
10, // 10: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:output_type -> pb.RPCSuccess
|
||||||
9, // 11: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:output_type -> pb.RPCSuccess
|
10, // 11: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:output_type -> pb.RPCSuccess
|
||||||
9, // 12: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:output_type -> pb.RPCSuccess
|
10, // 12: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:output_type -> pb.RPCSuccess
|
||||||
9, // 13: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:output_type -> pb.RPCSuccess
|
10, // 13: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:output_type -> pb.RPCSuccess
|
||||||
7, // [7:14] is the sub-list for method output_type
|
10, // 14: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:output_type -> pb.RPCSuccess
|
||||||
0, // [0:7] is the sub-list for method input_type
|
10, // 15: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:output_type -> pb.RPCSuccess
|
||||||
0, // [0:0] is the sub-list for extension type_name
|
8, // [8:16] is the sub-list for method output_type
|
||||||
0, // [0:0] is the sub-list for extension extendee
|
0, // [0:8] is the sub-list for method input_type
|
||||||
0, // [0:0] is the sub-list for field type_name
|
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_header_policy_proto_init() }
|
func init() { file_service_http_header_policy_proto_init() }
|
||||||
@@ -767,6 +843,18 @@ func file_service_http_header_policy_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_service_http_header_policy_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*UpdateHTTPHeaderPolicyCORSRequest); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@@ -774,7 +862,7 @@ func file_service_http_header_policy_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_service_http_header_policy_proto_rawDesc,
|
RawDescriptor: file_service_http_header_policy_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 9,
|
NumMessages: 10,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
@@ -814,6 +902,8 @@ type HTTPHeaderPolicyServiceClient interface {
|
|||||||
UpdateHTTPHeaderPolicyReplacingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyReplacingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
UpdateHTTPHeaderPolicyReplacingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyReplacingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||||
// 修改删除的Headers
|
// 修改删除的Headers
|
||||||
UpdateHTTPHeaderPolicyDeletingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyDeletingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
UpdateHTTPHeaderPolicyDeletingHeaders(ctx context.Context, in *UpdateHTTPHeaderPolicyDeletingHeadersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||||
|
// 修改策略CORS设置
|
||||||
|
UpdateHTTPHeaderPolicyCORS(ctx context.Context, in *UpdateHTTPHeaderPolicyCORSRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type hTTPHeaderPolicyServiceClient struct {
|
type hTTPHeaderPolicyServiceClient struct {
|
||||||
@@ -887,6 +977,15 @@ func (c *hTTPHeaderPolicyServiceClient) UpdateHTTPHeaderPolicyDeletingHeaders(ct
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *hTTPHeaderPolicyServiceClient) UpdateHTTPHeaderPolicyCORS(ctx context.Context, in *UpdateHTTPHeaderPolicyCORSRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||||
|
out := new(RPCSuccess)
|
||||||
|
err := c.cc.Invoke(ctx, "/pb.HTTPHeaderPolicyService/updateHTTPHeaderPolicyCORS", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
// HTTPHeaderPolicyServiceServer is the server API for HTTPHeaderPolicyService service.
|
// HTTPHeaderPolicyServiceServer is the server API for HTTPHeaderPolicyService service.
|
||||||
type HTTPHeaderPolicyServiceServer interface {
|
type HTTPHeaderPolicyServiceServer interface {
|
||||||
// 查找策略配置
|
// 查找策略配置
|
||||||
@@ -903,6 +1002,8 @@ type HTTPHeaderPolicyServiceServer interface {
|
|||||||
UpdateHTTPHeaderPolicyReplacingHeaders(context.Context, *UpdateHTTPHeaderPolicyReplacingHeadersRequest) (*RPCSuccess, error)
|
UpdateHTTPHeaderPolicyReplacingHeaders(context.Context, *UpdateHTTPHeaderPolicyReplacingHeadersRequest) (*RPCSuccess, error)
|
||||||
// 修改删除的Headers
|
// 修改删除的Headers
|
||||||
UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error)
|
UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error)
|
||||||
|
// 修改策略CORS设置
|
||||||
|
UpdateHTTPHeaderPolicyCORS(context.Context, *UpdateHTTPHeaderPolicyCORSRequest) (*RPCSuccess, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnimplementedHTTPHeaderPolicyServiceServer can be embedded to have forward compatible implementations.
|
// UnimplementedHTTPHeaderPolicyServiceServer can be embedded to have forward compatible implementations.
|
||||||
@@ -930,6 +1031,9 @@ func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyReplaci
|
|||||||
func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error) {
|
func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyDeletingHeaders(context.Context, *UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*RPCSuccess, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyDeletingHeaders not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyDeletingHeaders not implemented")
|
||||||
}
|
}
|
||||||
|
func (*UnimplementedHTTPHeaderPolicyServiceServer) UpdateHTTPHeaderPolicyCORS(context.Context, *UpdateHTTPHeaderPolicyCORSRequest) (*RPCSuccess, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeaderPolicyCORS not implemented")
|
||||||
|
}
|
||||||
|
|
||||||
func RegisterHTTPHeaderPolicyServiceServer(s *grpc.Server, srv HTTPHeaderPolicyServiceServer) {
|
func RegisterHTTPHeaderPolicyServiceServer(s *grpc.Server, srv HTTPHeaderPolicyServiceServer) {
|
||||||
s.RegisterService(&_HTTPHeaderPolicyService_serviceDesc, srv)
|
s.RegisterService(&_HTTPHeaderPolicyService_serviceDesc, srv)
|
||||||
@@ -1061,6 +1165,24 @@ func _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyDeletingHeaders_Handler(srv
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyCORS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(UpdateHTTPHeaderPolicyCORSRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HTTPHeaderPolicyServiceServer).UpdateHTTPHeaderPolicyCORS(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/pb.HTTPHeaderPolicyService/UpdateHTTPHeaderPolicyCORS",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HTTPHeaderPolicyServiceServer).UpdateHTTPHeaderPolicyCORS(ctx, req.(*UpdateHTTPHeaderPolicyCORSRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
var _HTTPHeaderPolicyService_serviceDesc = grpc.ServiceDesc{
|
var _HTTPHeaderPolicyService_serviceDesc = grpc.ServiceDesc{
|
||||||
ServiceName: "pb.HTTPHeaderPolicyService",
|
ServiceName: "pb.HTTPHeaderPolicyService",
|
||||||
HandlerType: (*HTTPHeaderPolicyServiceServer)(nil),
|
HandlerType: (*HTTPHeaderPolicyServiceServer)(nil),
|
||||||
@@ -1093,6 +1215,10 @@ var _HTTPHeaderPolicyService_serviceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "updateHTTPHeaderPolicyDeletingHeaders",
|
MethodName: "updateHTTPHeaderPolicyDeletingHeaders",
|
||||||
Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyDeletingHeaders_Handler,
|
Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyDeletingHeaders_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "updateHTTPHeaderPolicyCORS",
|
||||||
|
Handler: _HTTPHeaderPolicyService_UpdateHTTPHeaderPolicyCORS_Handler,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "service_http_header_policy.proto",
|
Metadata: "service_http_header_policy.proto",
|
||||||
|
|||||||
@@ -27,15 +27,18 @@ service HTTPHeaderPolicyService {
|
|||||||
|
|
||||||
// 修改删除的Headers
|
// 修改删除的Headers
|
||||||
rpc updateHTTPHeaderPolicyDeletingHeaders (UpdateHTTPHeaderPolicyDeletingHeadersRequest) returns (RPCSuccess);
|
rpc updateHTTPHeaderPolicyDeletingHeaders (UpdateHTTPHeaderPolicyDeletingHeadersRequest) returns (RPCSuccess);
|
||||||
|
|
||||||
|
// 修改策略CORS设置
|
||||||
|
rpc updateHTTPHeaderPolicyCORS(UpdateHTTPHeaderPolicyCORSRequest) returns (RPCSuccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查找策略
|
// 查找策略
|
||||||
message FindEnabledHTTPHeaderPolicyConfigRequest {
|
message FindEnabledHTTPHeaderPolicyConfigRequest {
|
||||||
int64 headerPolicyId = 1;
|
int64 httpHeaderPolicyId = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message FindEnabledHTTPHeaderPolicyConfigResponse {
|
message FindEnabledHTTPHeaderPolicyConfigResponse {
|
||||||
bytes headerPolicyJSON = 1;
|
bytes httpHeaderPolicyJSON = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 创建策略
|
// 创建策略
|
||||||
@@ -44,35 +47,41 @@ message CreateHTTPHeaderPolicyRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message CreateHTTPHeaderPolicyResponse {
|
message CreateHTTPHeaderPolicyResponse {
|
||||||
int64 headerPolicyId = 1;
|
int64 httpHeaderPolicyId = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改AddHeaders
|
// 修改AddHeaders
|
||||||
message UpdateHTTPHeaderPolicyAddingHeadersRequest {
|
message UpdateHTTPHeaderPolicyAddingHeadersRequest {
|
||||||
int64 headerPolicyId = 1;
|
int64 httpHeaderPolicyId = 1;
|
||||||
bytes headersJSON = 2;
|
bytes headersJSON = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改SetHeaders
|
// 修改SetHeaders
|
||||||
message UpdateHTTPHeaderPolicySettingHeadersRequest {
|
message UpdateHTTPHeaderPolicySettingHeadersRequest {
|
||||||
int64 headerPolicyId = 1;
|
int64 httpHeaderPolicyId = 1;
|
||||||
bytes headersJSON = 2;
|
bytes headersJSON = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改AddTrailers
|
// 修改AddTrailers
|
||||||
message UpdateHTTPHeaderPolicyAddingTrailersRequest {
|
message UpdateHTTPHeaderPolicyAddingTrailersRequest {
|
||||||
int64 headerPolicyId = 1;
|
int64 httpHeaderPolicyId = 1;
|
||||||
bytes headersJSON = 2;
|
bytes headersJSON = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改ReplaceHeaders
|
// 修改ReplaceHeaders
|
||||||
message UpdateHTTPHeaderPolicyReplacingHeadersRequest {
|
message UpdateHTTPHeaderPolicyReplacingHeadersRequest {
|
||||||
int64 headerPolicyId = 1;
|
int64 httpHeaderPolicyId = 1;
|
||||||
bytes headersJSON = 2;
|
bytes headersJSON = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改删除的Headers
|
// 修改删除的Headers
|
||||||
message UpdateHTTPHeaderPolicyDeletingHeadersRequest {
|
message UpdateHTTPHeaderPolicyDeletingHeadersRequest {
|
||||||
int64 headerPolicyId = 1;
|
int64 httpHeaderPolicyId = 1;
|
||||||
repeated string headerNames = 2;
|
repeated string headerNames = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修改策略CORS设置
|
||||||
|
message UpdateHTTPHeaderPolicyCORSRequest {
|
||||||
|
int64 httpHeaderPolicyId = 1;
|
||||||
|
bytes corsJSON = 2;
|
||||||
|
}
|
||||||
19
pkg/serverconfigs/shared/http_cors_header_config.go
Normal file
19
pkg/serverconfigs/shared/http_cors_header_config.go
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||||
|
|
||||||
|
package shared
|
||||||
|
|
||||||
|
// HTTPCORSHeaderConfig 参考 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
||||||
|
type HTTPCORSHeaderConfig struct {
|
||||||
|
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||||
|
AllowMethods []string `yaml:"allowMethods" json:"allowMethods"` // TODO
|
||||||
|
AllowOrigin string `yaml:"allowOrigin" json:"allowOrigin"` // TODO
|
||||||
|
AllowCredentials bool `yaml:"allowCredentials" json:"allowCredentials"` // TODO
|
||||||
|
ExposeHeaders []string `yaml:"exposeHeaders" json:"exposeHeaders"` // TODO
|
||||||
|
MaxAge int32 `yaml:"maxAge" json:"maxAge"` // TODO
|
||||||
|
RequestHeaders []string `yaml:"requestHeaders" json:"requestHeaders"` // TODO
|
||||||
|
RequestMethod string `yaml:"requestMethod" json:"requestMethod"` // TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *HTTPCORSHeaderConfig) Init() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@ type HTTPHeaderPolicy struct {
|
|||||||
DeleteHeaders []string `yaml:"deleteHeaders" json:"deleteHeaders"` // 删除的Header
|
DeleteHeaders []string `yaml:"deleteHeaders" json:"deleteHeaders"` // 删除的Header
|
||||||
|
|
||||||
Expires *HTTPExpireHeaderConfig `yaml:"expires" json:"expires"` // TODO
|
Expires *HTTPExpireHeaderConfig `yaml:"expires" json:"expires"` // TODO
|
||||||
|
CORS *HTTPCORSHeaderConfig `yaml:"cors" json:"cors"`
|
||||||
|
|
||||||
setHeaderNames []string
|
setHeaderNames []string
|
||||||
deleteHeaderMap map[string]bool // header => bool
|
deleteHeaderMap map[string]bool // header => bool
|
||||||
@@ -36,6 +37,14 @@ func (this *HTTPHeaderPolicy) Init() error {
|
|||||||
this.deleteHeaderMap[strings.ToUpper(header)] = true
|
this.deleteHeaderMap[strings.ToUpper(header)] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cors
|
||||||
|
if this.CORS != nil {
|
||||||
|
err := this.CORS.Init()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user