mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-01 19:00:35 +08:00
服务支持fastcgi;路径规则支持匹配后缀
This commit is contained in:
218
pkg/rpc/pb/model_http_fastcgi.pb.go
Normal file
218
pkg/rpc/pb/model_http_fastcgi.pb.go
Normal file
@@ -0,0 +1,218 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.12.3
|
||||
// source: models/model_http_fastcgi.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// HTTP Fastcgi定义
|
||||
type HTTPFastcgi struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||||
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
|
||||
ParamsJSON []byte `protobuf:"bytes,4,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"`
|
||||
ReadTimeoutJSON []byte `protobuf:"bytes,5,opt,name=readTimeoutJSON,proto3" json:"readTimeoutJSON,omitempty"`
|
||||
ConnTimeoutJSON []byte `protobuf:"bytes,6,opt,name=connTimeoutJSON,proto3" json:"connTimeoutJSON,omitempty"`
|
||||
PoolSize int32 `protobuf:"varint,7,opt,name=poolSize,proto3" json:"poolSize,omitempty"`
|
||||
PathInfoPattern string `protobuf:"bytes,8,opt,name=pathInfoPattern,proto3" json:"pathInfoPattern,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) Reset() {
|
||||
*x = HTTPFastcgi{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_models_model_http_fastcgi_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*HTTPFastcgi) ProtoMessage() {}
|
||||
|
||||
func (x *HTTPFastcgi) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_models_model_http_fastcgi_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 HTTPFastcgi.ProtoReflect.Descriptor instead.
|
||||
func (*HTTPFastcgi) Descriptor() ([]byte, []int) {
|
||||
return file_models_model_http_fastcgi_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetIsOn() bool {
|
||||
if x != nil {
|
||||
return x.IsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetParamsJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ParamsJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetReadTimeoutJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ReadTimeoutJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetConnTimeoutJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ConnTimeoutJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetPoolSize() int32 {
|
||||
if x != nil {
|
||||
return x.PoolSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *HTTPFastcgi) GetPathInfoPattern() string {
|
||||
if x != nil {
|
||||
return x.PathInfoPattern
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_models_model_http_fastcgi_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_models_model_http_fastcgi_proto_rawDesc = []byte{
|
||||
0x0a, 0x1f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x68,
|
||||
0x74, 0x74, 0x70, 0x5f, 0x66, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x85, 0x02, 0x0a, 0x0b, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61,
|
||||
0x73, 0x74, 0x63, 0x67, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64,
|
||||
0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
|
||||
0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x4a, 0x53, 0x4f,
|
||||
0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x4a,
|
||||
0x53, 0x4f, 0x4e, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f,
|
||||
0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x72, 0x65,
|
||||
0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x28, 0x0a,
|
||||
0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e,
|
||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x69, 0x6d, 0x65,
|
||||
0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x53,
|
||||
0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x53,
|
||||
0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x61, 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x50,
|
||||
0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x61,
|
||||
0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x42, 0x06, 0x5a,
|
||||
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_models_model_http_fastcgi_proto_rawDescOnce sync.Once
|
||||
file_models_model_http_fastcgi_proto_rawDescData = file_models_model_http_fastcgi_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_models_model_http_fastcgi_proto_rawDescGZIP() []byte {
|
||||
file_models_model_http_fastcgi_proto_rawDescOnce.Do(func() {
|
||||
file_models_model_http_fastcgi_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_http_fastcgi_proto_rawDescData)
|
||||
})
|
||||
return file_models_model_http_fastcgi_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_models_model_http_fastcgi_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_models_model_http_fastcgi_proto_goTypes = []interface{}{
|
||||
(*HTTPFastcgi)(nil), // 0: pb.HTTPFastcgi
|
||||
}
|
||||
var file_models_model_http_fastcgi_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] 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_models_model_http_fastcgi_proto_init() }
|
||||
func file_models_model_http_fastcgi_proto_init() {
|
||||
if File_models_model_http_fastcgi_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_models_model_http_fastcgi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HTTPFastcgi); 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_models_model_http_fastcgi_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_models_model_http_fastcgi_proto_goTypes,
|
||||
DependencyIndexes: file_models_model_http_fastcgi_proto_depIdxs,
|
||||
MessageInfos: file_models_model_http_fastcgi_proto_msgTypes,
|
||||
}.Build()
|
||||
File_models_model_http_fastcgi_proto = out.File
|
||||
file_models_model_http_fastcgi_proto_rawDesc = nil
|
||||
file_models_model_http_fastcgi_proto_goTypes = nil
|
||||
file_models_model_http_fastcgi_proto_depIdxs = nil
|
||||
}
|
||||
912
pkg/rpc/pb/service_http_fastcgi.pb.go
Normal file
912
pkg/rpc/pb/service_http_fastcgi.pb.go
Normal file
@@ -0,0 +1,912 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.12.3
|
||||
// source: service_http_fastcgi.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 创建Fastcgi服务
|
||||
type CreateHTTPFastcgiRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
IsOn bool `protobuf:"varint,1,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||||
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
||||
ParamsJSON []byte `protobuf:"bytes,3,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"`
|
||||
ReadTimeoutJSON []byte `protobuf:"bytes,4,opt,name=readTimeoutJSON,proto3" json:"readTimeoutJSON,omitempty"`
|
||||
ConnTimeoutJSON []byte `protobuf:"bytes,5,opt,name=connTimeoutJSON,proto3" json:"connTimeoutJSON,omitempty"`
|
||||
PoolSize int32 `protobuf:"varint,6,opt,name=poolSize,proto3" json:"poolSize,omitempty"`
|
||||
PathInfoPattern string `protobuf:"bytes,7,opt,name=pathInfoPattern,proto3" json:"pathInfoPattern,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) Reset() {
|
||||
*x = CreateHTTPFastcgiRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateHTTPFastcgiRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_fastcgi_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 CreateHTTPFastcgiRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateHTTPFastcgiRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_fastcgi_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) GetIsOn() bool {
|
||||
if x != nil {
|
||||
return x.IsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) GetParamsJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ParamsJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) GetReadTimeoutJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ReadTimeoutJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) GetConnTimeoutJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ConnTimeoutJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) GetPoolSize() int32 {
|
||||
if x != nil {
|
||||
return x.PoolSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiRequest) GetPathInfoPattern() string {
|
||||
if x != nil {
|
||||
return x.PathInfoPattern
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CreateHTTPFastcgiResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HttpFastcgiId int64 `protobuf:"varint,1,opt,name=httpFastcgiId,proto3" json:"httpFastcgiId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiResponse) Reset() {
|
||||
*x = CreateHTTPFastcgiResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateHTTPFastcgiResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CreateHTTPFastcgiResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_fastcgi_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 CreateHTTPFastcgiResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CreateHTTPFastcgiResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_fastcgi_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CreateHTTPFastcgiResponse) GetHttpFastcgiId() int64 {
|
||||
if x != nil {
|
||||
return x.HttpFastcgiId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 修改Fastcgi服务
|
||||
type UpdateHTTPFastcgiRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HttpFastcgiId int64 `protobuf:"varint,1,opt,name=httpFastcgiId,proto3" json:"httpFastcgiId,omitempty"`
|
||||
IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||||
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
|
||||
ParamsJSON []byte `protobuf:"bytes,4,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"`
|
||||
ReadTimeoutJSON []byte `protobuf:"bytes,5,opt,name=readTimeoutJSON,proto3" json:"readTimeoutJSON,omitempty"`
|
||||
ConnTimeoutJSON []byte `protobuf:"bytes,6,opt,name=connTimeoutJSON,proto3" json:"connTimeoutJSON,omitempty"`
|
||||
PoolSize int32 `protobuf:"varint,7,opt,name=poolSize,proto3" json:"poolSize,omitempty"`
|
||||
PathInfoPattern string `protobuf:"bytes,8,opt,name=pathInfoPattern,proto3" json:"pathInfoPattern,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) Reset() {
|
||||
*x = UpdateHTTPFastcgiRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateHTTPFastcgiRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_fastcgi_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 UpdateHTTPFastcgiRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHTTPFastcgiRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_fastcgi_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetHttpFastcgiId() int64 {
|
||||
if x != nil {
|
||||
return x.HttpFastcgiId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetIsOn() bool {
|
||||
if x != nil {
|
||||
return x.IsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetParamsJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ParamsJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetReadTimeoutJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ReadTimeoutJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetConnTimeoutJSON() []byte {
|
||||
if x != nil {
|
||||
return x.ConnTimeoutJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetPoolSize() int32 {
|
||||
if x != nil {
|
||||
return x.PoolSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPFastcgiRequest) GetPathInfoPattern() string {
|
||||
if x != nil {
|
||||
return x.PathInfoPattern
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 获取Fastcgi详情
|
||||
type FindEnabledHTTPFastcgiRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HttpFastcgiId int64 `protobuf:"varint,1,opt,name=httpFastcgiId,proto3" json:"httpFastcgiId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiRequest) Reset() {
|
||||
*x = FindEnabledHTTPFastcgiRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindEnabledHTTPFastcgiRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[3]
|
||||
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 FindEnabledHTTPFastcgiRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindEnabledHTTPFastcgiRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_fastcgi_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiRequest) GetHttpFastcgiId() int64 {
|
||||
if x != nil {
|
||||
return x.HttpFastcgiId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type FindEnabledHTTPFastcgiResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HttpFastcgi *HTTPFastcgi `protobuf:"bytes,1,opt,name=httpFastcgi,proto3" json:"httpFastcgi,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiResponse) Reset() {
|
||||
*x = FindEnabledHTTPFastcgiResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindEnabledHTTPFastcgiResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[4]
|
||||
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 FindEnabledHTTPFastcgiResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindEnabledHTTPFastcgiResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_fastcgi_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiResponse) GetHttpFastcgi() *HTTPFastcgi {
|
||||
if x != nil {
|
||||
return x.HttpFastcgi
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 获取Fastcgi配置
|
||||
type FindEnabledHTTPFastcgiConfigRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HttpFastcgiId int64 `protobuf:"varint,1,opt,name=httpFastcgiId,proto3" json:"httpFastcgiId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigRequest) Reset() {
|
||||
*x = FindEnabledHTTPFastcgiConfigRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindEnabledHTTPFastcgiConfigRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[5]
|
||||
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 FindEnabledHTTPFastcgiConfigRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindEnabledHTTPFastcgiConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_fastcgi_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigRequest) GetHttpFastcgiId() int64 {
|
||||
if x != nil {
|
||||
return x.HttpFastcgiId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type FindEnabledHTTPFastcgiConfigResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HttpFastcgiJSON []byte `protobuf:"bytes,1,opt,name=httpFastcgiJSON,proto3" json:"httpFastcgiJSON,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigResponse) Reset() {
|
||||
*x = FindEnabledHTTPFastcgiConfigResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindEnabledHTTPFastcgiConfigResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_fastcgi_proto_msgTypes[6]
|
||||
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 FindEnabledHTTPFastcgiConfigResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindEnabledHTTPFastcgiConfigResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_fastcgi_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *FindEnabledHTTPFastcgiConfigResponse) GetHttpFastcgiJSON() []byte {
|
||||
if x != nil {
|
||||
return x.HttpFastcgiJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_service_http_fastcgi_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_service_http_fastcgi_proto_rawDesc = []byte{
|
||||
0x0a, 0x1a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x66,
|
||||
0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x2e, 0x70, 0x72, 0x6f, 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, 0x6f, 0x1a, 0x1f, 0x6d, 0x6f, 0x64,
|
||||
0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x66,
|
||||
0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x02, 0x0a,
|
||||
0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63,
|
||||
0x67, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f,
|
||||
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
||||
0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x61, 0x72,
|
||||
0x61, 0x6d, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x64, 0x54,
|
||||
0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x0f, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f,
|
||||
0x4e, 0x12, 0x28, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
|
||||
0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x6e,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x70,
|
||||
0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,
|
||||
0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x61, 0x74, 0x68, 0x49,
|
||||
0x6e, 0x66, 0x6f, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x0f, 0x70, 0x61, 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72,
|
||||
0x6e, 0x22, 0x41, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46,
|
||||
0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24,
|
||||
0x0a, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x49, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73, 0x74, 0x63,
|
||||
0x67, 0x69, 0x49, 0x64, 0x22, 0xa8, 0x02, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x24, 0x0a, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69,
|
||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61,
|
||||
0x73, 0x74, 0x63, 0x67, 0x69, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61,
|
||||
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64,
|
||||
0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x4a,
|
||||
0x53, 0x4f, 0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d,
|
||||
0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d,
|
||||
0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f,
|
||||
0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12,
|
||||
0x28, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53,
|
||||
0x4f, 0x4e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6f,
|
||||
0x6c, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x6f,
|
||||
0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x61, 0x74, 0x68, 0x49, 0x6e, 0x66,
|
||||
0x6f, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
|
||||
0x70, 0x61, 0x74, 0x68, 0x49, 0x6e, 0x66, 0x6f, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x22,
|
||||
0x45, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
|
||||
0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x24, 0x0a, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x49,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73,
|
||||
0x74, 0x63, 0x67, 0x69, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70,
|
||||
0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x0b,
|
||||
0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x22, 0x4b, 0x0a, 0x23, 0x46,
|
||||
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61,
|
||||
0x73, 0x74, 0x63, 0x67, 0x69, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67,
|
||||
0x69, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x46,
|
||||
0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x49, 0x64, 0x22, 0x50, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63,
|
||||
0x67, 0x69, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x28, 0x0a, 0x0f, 0x68, 0x74, 0x74, 0x70, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x4a,
|
||||
0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x68, 0x74, 0x74, 0x70, 0x46,
|
||||
0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0xfd, 0x02, 0x0a, 0x12, 0x48,
|
||||
0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
||||
0x65, 0x12, 0x50, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46,
|
||||
0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
||||
0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53,
|
||||
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69,
|
||||
0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69, 0x6e, 0x64, 0x45,
|
||||
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67,
|
||||
0x69, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
|
||||
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74,
|
||||
0x63, 0x67, 0x69, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x48, 0x54, 0x54, 0x50, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x43, 0x6f, 0x6e, 0x66,
|
||||
0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
|
||||
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_service_http_fastcgi_proto_rawDescOnce sync.Once
|
||||
file_service_http_fastcgi_proto_rawDescData = file_service_http_fastcgi_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_service_http_fastcgi_proto_rawDescGZIP() []byte {
|
||||
file_service_http_fastcgi_proto_rawDescOnce.Do(func() {
|
||||
file_service_http_fastcgi_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_http_fastcgi_proto_rawDescData)
|
||||
})
|
||||
return file_service_http_fastcgi_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_http_fastcgi_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_service_http_fastcgi_proto_goTypes = []interface{}{
|
||||
(*CreateHTTPFastcgiRequest)(nil), // 0: pb.CreateHTTPFastcgiRequest
|
||||
(*CreateHTTPFastcgiResponse)(nil), // 1: pb.CreateHTTPFastcgiResponse
|
||||
(*UpdateHTTPFastcgiRequest)(nil), // 2: pb.UpdateHTTPFastcgiRequest
|
||||
(*FindEnabledHTTPFastcgiRequest)(nil), // 3: pb.FindEnabledHTTPFastcgiRequest
|
||||
(*FindEnabledHTTPFastcgiResponse)(nil), // 4: pb.FindEnabledHTTPFastcgiResponse
|
||||
(*FindEnabledHTTPFastcgiConfigRequest)(nil), // 5: pb.FindEnabledHTTPFastcgiConfigRequest
|
||||
(*FindEnabledHTTPFastcgiConfigResponse)(nil), // 6: pb.FindEnabledHTTPFastcgiConfigResponse
|
||||
(*HTTPFastcgi)(nil), // 7: pb.HTTPFastcgi
|
||||
(*RPCSuccess)(nil), // 8: pb.RPCSuccess
|
||||
}
|
||||
var file_service_http_fastcgi_proto_depIdxs = []int32{
|
||||
7, // 0: pb.FindEnabledHTTPFastcgiResponse.httpFastcgi:type_name -> pb.HTTPFastcgi
|
||||
0, // 1: pb.HTTPFastcgiService.createHTTPFastcgi:input_type -> pb.CreateHTTPFastcgiRequest
|
||||
2, // 2: pb.HTTPFastcgiService.updateHTTPFastcgi:input_type -> pb.UpdateHTTPFastcgiRequest
|
||||
3, // 3: pb.HTTPFastcgiService.findEnabledHTTPFastcgi:input_type -> pb.FindEnabledHTTPFastcgiRequest
|
||||
5, // 4: pb.HTTPFastcgiService.findEnabledHTTPFastcgiConfig:input_type -> pb.FindEnabledHTTPFastcgiConfigRequest
|
||||
1, // 5: pb.HTTPFastcgiService.createHTTPFastcgi:output_type -> pb.CreateHTTPFastcgiResponse
|
||||
8, // 6: pb.HTTPFastcgiService.updateHTTPFastcgi:output_type -> pb.RPCSuccess
|
||||
4, // 7: pb.HTTPFastcgiService.findEnabledHTTPFastcgi:output_type -> pb.FindEnabledHTTPFastcgiResponse
|
||||
6, // 8: pb.HTTPFastcgiService.findEnabledHTTPFastcgiConfig:output_type -> pb.FindEnabledHTTPFastcgiConfigResponse
|
||||
5, // [5:9] is the sub-list for method output_type
|
||||
1, // [1:5] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_service_http_fastcgi_proto_init() }
|
||||
func file_service_http_fastcgi_proto_init() {
|
||||
if File_service_http_fastcgi_proto != nil {
|
||||
return
|
||||
}
|
||||
file_models_rpc_messages_proto_init()
|
||||
file_models_model_http_fastcgi_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_service_http_fastcgi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CreateHTTPFastcgiRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_http_fastcgi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CreateHTTPFastcgiResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_http_fastcgi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UpdateHTTPFastcgiRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_http_fastcgi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindEnabledHTTPFastcgiRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_http_fastcgi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindEnabledHTTPFastcgiResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_http_fastcgi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindEnabledHTTPFastcgiConfigRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_http_fastcgi_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindEnabledHTTPFastcgiConfigResponse); 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_fastcgi_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_service_http_fastcgi_proto_goTypes,
|
||||
DependencyIndexes: file_service_http_fastcgi_proto_depIdxs,
|
||||
MessageInfos: file_service_http_fastcgi_proto_msgTypes,
|
||||
}.Build()
|
||||
File_service_http_fastcgi_proto = out.File
|
||||
file_service_http_fastcgi_proto_rawDesc = nil
|
||||
file_service_http_fastcgi_proto_goTypes = nil
|
||||
file_service_http_fastcgi_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// HTTPFastcgiServiceClient is the client API for HTTPFastcgiService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type HTTPFastcgiServiceClient interface {
|
||||
// 创建Fastcgi
|
||||
CreateHTTPFastcgi(ctx context.Context, in *CreateHTTPFastcgiRequest, opts ...grpc.CallOption) (*CreateHTTPFastcgiResponse, error)
|
||||
// 修改Fastcgi
|
||||
UpdateHTTPFastcgi(ctx context.Context, in *UpdateHTTPFastcgiRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 获取Fastcgi详情
|
||||
FindEnabledHTTPFastcgi(ctx context.Context, in *FindEnabledHTTPFastcgiRequest, opts ...grpc.CallOption) (*FindEnabledHTTPFastcgiResponse, error)
|
||||
// 获取Fastcgi配置
|
||||
FindEnabledHTTPFastcgiConfig(ctx context.Context, in *FindEnabledHTTPFastcgiConfigRequest, opts ...grpc.CallOption) (*FindEnabledHTTPFastcgiConfigResponse, error)
|
||||
}
|
||||
|
||||
type hTTPFastcgiServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewHTTPFastcgiServiceClient(cc grpc.ClientConnInterface) HTTPFastcgiServiceClient {
|
||||
return &hTTPFastcgiServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *hTTPFastcgiServiceClient) CreateHTTPFastcgi(ctx context.Context, in *CreateHTTPFastcgiRequest, opts ...grpc.CallOption) (*CreateHTTPFastcgiResponse, error) {
|
||||
out := new(CreateHTTPFastcgiResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.HTTPFastcgiService/createHTTPFastcgi", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPFastcgiServiceClient) UpdateHTTPFastcgi(ctx context.Context, in *UpdateHTTPFastcgiRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.HTTPFastcgiService/updateHTTPFastcgi", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPFastcgiServiceClient) FindEnabledHTTPFastcgi(ctx context.Context, in *FindEnabledHTTPFastcgiRequest, opts ...grpc.CallOption) (*FindEnabledHTTPFastcgiResponse, error) {
|
||||
out := new(FindEnabledHTTPFastcgiResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.HTTPFastcgiService/findEnabledHTTPFastcgi", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPFastcgiServiceClient) FindEnabledHTTPFastcgiConfig(ctx context.Context, in *FindEnabledHTTPFastcgiConfigRequest, opts ...grpc.CallOption) (*FindEnabledHTTPFastcgiConfigResponse, error) {
|
||||
out := new(FindEnabledHTTPFastcgiConfigResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.HTTPFastcgiService/findEnabledHTTPFastcgiConfig", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// HTTPFastcgiServiceServer is the server API for HTTPFastcgiService service.
|
||||
type HTTPFastcgiServiceServer interface {
|
||||
// 创建Fastcgi
|
||||
CreateHTTPFastcgi(context.Context, *CreateHTTPFastcgiRequest) (*CreateHTTPFastcgiResponse, error)
|
||||
// 修改Fastcgi
|
||||
UpdateHTTPFastcgi(context.Context, *UpdateHTTPFastcgiRequest) (*RPCSuccess, error)
|
||||
// 获取Fastcgi详情
|
||||
FindEnabledHTTPFastcgi(context.Context, *FindEnabledHTTPFastcgiRequest) (*FindEnabledHTTPFastcgiResponse, error)
|
||||
// 获取Fastcgi配置
|
||||
FindEnabledHTTPFastcgiConfig(context.Context, *FindEnabledHTTPFastcgiConfigRequest) (*FindEnabledHTTPFastcgiConfigResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedHTTPFastcgiServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedHTTPFastcgiServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedHTTPFastcgiServiceServer) CreateHTTPFastcgi(context.Context, *CreateHTTPFastcgiRequest) (*CreateHTTPFastcgiResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPFastcgi not implemented")
|
||||
}
|
||||
func (*UnimplementedHTTPFastcgiServiceServer) UpdateHTTPFastcgi(context.Context, *UpdateHTTPFastcgiRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPFastcgi not implemented")
|
||||
}
|
||||
func (*UnimplementedHTTPFastcgiServiceServer) FindEnabledHTTPFastcgi(context.Context, *FindEnabledHTTPFastcgiRequest) (*FindEnabledHTTPFastcgiResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledHTTPFastcgi not implemented")
|
||||
}
|
||||
func (*UnimplementedHTTPFastcgiServiceServer) FindEnabledHTTPFastcgiConfig(context.Context, *FindEnabledHTTPFastcgiConfigRequest) (*FindEnabledHTTPFastcgiConfigResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledHTTPFastcgiConfig not implemented")
|
||||
}
|
||||
|
||||
func RegisterHTTPFastcgiServiceServer(s *grpc.Server, srv HTTPFastcgiServiceServer) {
|
||||
s.RegisterService(&_HTTPFastcgiService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _HTTPFastcgiService_CreateHTTPFastcgi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateHTTPFastcgiRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HTTPFastcgiServiceServer).CreateHTTPFastcgi(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.HTTPFastcgiService/CreateHTTPFastcgi",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HTTPFastcgiServiceServer).CreateHTTPFastcgi(ctx, req.(*CreateHTTPFastcgiRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HTTPFastcgiService_UpdateHTTPFastcgi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateHTTPFastcgiRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HTTPFastcgiServiceServer).UpdateHTTPFastcgi(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.HTTPFastcgiService/UpdateHTTPFastcgi",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HTTPFastcgiServiceServer).UpdateHTTPFastcgi(ctx, req.(*UpdateHTTPFastcgiRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HTTPFastcgiService_FindEnabledHTTPFastcgi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindEnabledHTTPFastcgiRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HTTPFastcgiServiceServer).FindEnabledHTTPFastcgi(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.HTTPFastcgiService/FindEnabledHTTPFastcgi",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HTTPFastcgiServiceServer).FindEnabledHTTPFastcgi(ctx, req.(*FindEnabledHTTPFastcgiRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HTTPFastcgiService_FindEnabledHTTPFastcgiConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindEnabledHTTPFastcgiConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HTTPFastcgiServiceServer).FindEnabledHTTPFastcgiConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.HTTPFastcgiService/FindEnabledHTTPFastcgiConfig",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HTTPFastcgiServiceServer).FindEnabledHTTPFastcgiConfig(ctx, req.(*FindEnabledHTTPFastcgiConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _HTTPFastcgiService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "pb.HTTPFastcgiService",
|
||||
HandlerType: (*HTTPFastcgiServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "createHTTPFastcgi",
|
||||
Handler: _HTTPFastcgiService_CreateHTTPFastcgi_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateHTTPFastcgi",
|
||||
Handler: _HTTPFastcgiService_UpdateHTTPFastcgi_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findEnabledHTTPFastcgi",
|
||||
Handler: _HTTPFastcgiService_FindEnabledHTTPFastcgi_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findEnabledHTTPFastcgiConfig",
|
||||
Handler: _HTTPFastcgiService_FindEnabledHTTPFastcgiConfig_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_http_fastcgi.proto",
|
||||
}
|
||||
@@ -106,7 +106,7 @@ type CreateHTTPGzipResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GzipId int64 `protobuf:"varint,1,opt,name=gzipId,proto3" json:"gzipId,omitempty"`
|
||||
HttpGzipId int64 `protobuf:"varint,1,opt,name=httpGzipId,proto3" json:"httpGzipId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateHTTPGzipResponse) Reset() {
|
||||
@@ -141,9 +141,9 @@ func (*CreateHTTPGzipResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_gzip_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CreateHTTPGzipResponse) GetGzipId() int64 {
|
||||
func (x *CreateHTTPGzipResponse) GetHttpGzipId() int64 {
|
||||
if x != nil {
|
||||
return x.GzipId
|
||||
return x.HttpGzipId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@@ -154,7 +154,7 @@ type FindEnabledGzipConfigRequest struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GzipId int64 `protobuf:"varint,1,opt,name=gzipId,proto3" json:"gzipId,omitempty"`
|
||||
HttpGzipId int64 `protobuf:"varint,1,opt,name=httpGzipId,proto3" json:"httpGzipId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindEnabledGzipConfigRequest) Reset() {
|
||||
@@ -189,9 +189,9 @@ func (*FindEnabledGzipConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_gzip_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *FindEnabledGzipConfigRequest) GetGzipId() int64 {
|
||||
func (x *FindEnabledGzipConfigRequest) GetHttpGzipId() int64 {
|
||||
if x != nil {
|
||||
return x.GzipId
|
||||
return x.HttpGzipId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@@ -201,7 +201,7 @@ type FindEnabledGzipConfigResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GzipJSON []byte `protobuf:"bytes,1,opt,name=gzipJSON,proto3" json:"gzipJSON,omitempty"`
|
||||
HttpGzipJSON []byte `protobuf:"bytes,1,opt,name=httpGzipJSON,proto3" json:"httpGzipJSON,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindEnabledGzipConfigResponse) Reset() {
|
||||
@@ -236,9 +236,9 @@ func (*FindEnabledGzipConfigResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_gzip_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *FindEnabledGzipConfigResponse) GetGzipJSON() []byte {
|
||||
func (x *FindEnabledGzipConfigResponse) GetHttpGzipJSON() []byte {
|
||||
if x != nil {
|
||||
return x.GzipJSON
|
||||
return x.HttpGzipJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -249,7 +249,7 @@ type UpdateHTTPGzipRequest struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GzipId int64 `protobuf:"varint,1,opt,name=gzipId,proto3" json:"gzipId,omitempty"`
|
||||
HttpGzipId int64 `protobuf:"varint,1,opt,name=httpGzipId,proto3" json:"httpGzipId,omitempty"`
|
||||
Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
|
||||
MinLength *SizeCapacity `protobuf:"bytes,3,opt,name=minLength,proto3" json:"minLength,omitempty"`
|
||||
MaxLength *SizeCapacity `protobuf:"bytes,4,opt,name=maxLength,proto3" json:"maxLength,omitempty"`
|
||||
@@ -288,9 +288,9 @@ func (*UpdateHTTPGzipRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_gzip_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPGzipRequest) GetGzipId() int64 {
|
||||
func (x *UpdateHTTPGzipRequest) GetHttpGzipId() int64 {
|
||||
if x != nil {
|
||||
return x.GzipId
|
||||
return x.HttpGzipId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@@ -342,20 +342,22 @@ var file_service_http_gzip_proto_rawDesc = []byte{
|
||||
0x70, 0x62, 0x2e, 0x53, 0x69, 0x7a, 0x65, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x52,
|
||||
0x09, 0x6d, 0x61, 0x78, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,
|
||||
0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63,
|
||||
0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x30, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61,
|
||||
0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x38, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x47, 0x7a, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x7a, 0x69, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x06, 0x67, 0x7a, 0x69, 0x70, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x1c, 0x46, 0x69,
|
||||
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x47, 0x7a, 0x69, 0x70, 0x43, 0x6f, 0x6e,
|
||||
0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x7a,
|
||||
0x69, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x67, 0x7a, 0x69, 0x70,
|
||||
0x49, 0x64, 0x22, 0x3b, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x47, 0x7a, 0x69, 0x70, 0x49, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x47, 0x7a, 0x69, 0x70,
|
||||
0x49, 0x64, 0x22, 0x3e, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x47, 0x7a, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x47, 0x7a, 0x69, 0x70, 0x49, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x47, 0x7a, 0x69, 0x70,
|
||||
0x49, 0x64, 0x22, 0x43, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x47, 0x7a, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x7a, 0x69, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x67, 0x7a, 0x69, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x22,
|
||||
0xc3, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x47, 0x7a,
|
||||
0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x7a, 0x69,
|
||||
0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x67, 0x7a, 0x69, 0x70, 0x49,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x47, 0x7a, 0x69, 0x70, 0x4a,
|
||||
0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x47,
|
||||
0x7a, 0x69, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0xcb, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61,
|
||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x47, 0x7a, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x47, 0x7a, 0x69, 0x70, 0x49, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x47, 0x7a, 0x69, 0x70, 0x49,
|
||||
0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2e, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65,
|
||||
0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e,
|
||||
|
||||
@@ -1098,6 +1098,62 @@ func (x *UpdateHTTPWebWebsocketRequest) GetWebsocketJSON() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 更改Fastcgi设置
|
||||
type UpdateHTTPWebFastcgiRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
WebId int64 `protobuf:"varint,1,opt,name=webId,proto3" json:"webId,omitempty"`
|
||||
FastcgiJSON []byte `protobuf:"bytes,2,opt,name=fastcgiJSON,proto3" json:"fastcgiJSON,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPWebFastcgiRequest) Reset() {
|
||||
*x = UpdateHTTPWebFastcgiRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_web_proto_msgTypes[20]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPWebFastcgiRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateHTTPWebFastcgiRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHTTPWebFastcgiRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_web_proto_msgTypes[20]
|
||||
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 UpdateHTTPWebFastcgiRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHTTPWebFastcgiRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{20}
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPWebFastcgiRequest) GetWebId() int64 {
|
||||
if x != nil {
|
||||
return x.WebId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPWebFastcgiRequest) GetFastcgiJSON() []byte {
|
||||
if x != nil {
|
||||
return x.FastcgiJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 更改重写规则设置
|
||||
type UpdateHTTPWebRewriteRulesRequest struct {
|
||||
state protoimpl.MessageState
|
||||
@@ -1111,7 +1167,7 @@ type UpdateHTTPWebRewriteRulesRequest struct {
|
||||
func (x *UpdateHTTPWebRewriteRulesRequest) Reset() {
|
||||
*x = UpdateHTTPWebRewriteRulesRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_web_proto_msgTypes[20]
|
||||
mi := &file_service_http_web_proto_msgTypes[21]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1124,7 +1180,7 @@ func (x *UpdateHTTPWebRewriteRulesRequest) String() string {
|
||||
func (*UpdateHTTPWebRewriteRulesRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHTTPWebRewriteRulesRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_web_proto_msgTypes[20]
|
||||
mi := &file_service_http_web_proto_msgTypes[21]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1137,7 +1193,7 @@ func (x *UpdateHTTPWebRewriteRulesRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use UpdateHTTPWebRewriteRulesRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHTTPWebRewriteRulesRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{20}
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{21}
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPWebRewriteRulesRequest) GetWebId() int64 {
|
||||
@@ -1167,7 +1223,7 @@ type UpdateHTTPWebHostRedirectsRequest struct {
|
||||
func (x *UpdateHTTPWebHostRedirectsRequest) Reset() {
|
||||
*x = UpdateHTTPWebHostRedirectsRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_web_proto_msgTypes[21]
|
||||
mi := &file_service_http_web_proto_msgTypes[22]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1180,7 +1236,7 @@ func (x *UpdateHTTPWebHostRedirectsRequest) String() string {
|
||||
func (*UpdateHTTPWebHostRedirectsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHTTPWebHostRedirectsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_web_proto_msgTypes[21]
|
||||
mi := &file_service_http_web_proto_msgTypes[22]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1193,7 +1249,7 @@ func (x *UpdateHTTPWebHostRedirectsRequest) ProtoReflect() protoreflect.Message
|
||||
|
||||
// Deprecated: Use UpdateHTTPWebHostRedirectsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHTTPWebHostRedirectsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{21}
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{22}
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPWebHostRedirectsRequest) GetWebId() int64 {
|
||||
@@ -1222,7 +1278,7 @@ type FindHTTPWebHostRedirectsRequest struct {
|
||||
func (x *FindHTTPWebHostRedirectsRequest) Reset() {
|
||||
*x = FindHTTPWebHostRedirectsRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_web_proto_msgTypes[22]
|
||||
mi := &file_service_http_web_proto_msgTypes[23]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1235,7 +1291,7 @@ func (x *FindHTTPWebHostRedirectsRequest) String() string {
|
||||
func (*FindHTTPWebHostRedirectsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindHTTPWebHostRedirectsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_web_proto_msgTypes[22]
|
||||
mi := &file_service_http_web_proto_msgTypes[23]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1248,7 +1304,7 @@ func (x *FindHTTPWebHostRedirectsRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FindHTTPWebHostRedirectsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindHTTPWebHostRedirectsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{22}
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{23}
|
||||
}
|
||||
|
||||
func (x *FindHTTPWebHostRedirectsRequest) GetWebId() int64 {
|
||||
@@ -1269,7 +1325,7 @@ type FindHTTPWebHostRedirectsResponse struct {
|
||||
func (x *FindHTTPWebHostRedirectsResponse) Reset() {
|
||||
*x = FindHTTPWebHostRedirectsResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_http_web_proto_msgTypes[23]
|
||||
mi := &file_service_http_web_proto_msgTypes[24]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -1282,7 +1338,7 @@ func (x *FindHTTPWebHostRedirectsResponse) String() string {
|
||||
func (*FindHTTPWebHostRedirectsResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindHTTPWebHostRedirectsResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_http_web_proto_msgTypes[23]
|
||||
mi := &file_service_http_web_proto_msgTypes[24]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -1295,7 +1351,7 @@ func (x *FindHTTPWebHostRedirectsResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FindHTTPWebHostRedirectsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindHTTPWebHostRedirectsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{23}
|
||||
return file_service_http_web_proto_rawDescGZIP(), []int{24}
|
||||
}
|
||||
|
||||
func (x *FindHTTPWebHostRedirectsResponse) GetHostRedirectsJSON() []byte {
|
||||
@@ -1410,110 +1466,120 @@ var file_service_http_web_proto_rawDesc = []byte{
|
||||
0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x65, 0x62, 0x73,
|
||||
0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
||||
0x0d, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x64,
|
||||
0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52,
|
||||
0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x77, 0x72,
|
||||
0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73,
|
||||
0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x67, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
|
||||
0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62,
|
||||
0x0d, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x55,
|
||||
0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x46,
|
||||
0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x65,
|
||||
0x62, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x4a, 0x53,
|
||||
0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x66, 0x61, 0x73, 0x74, 0x63, 0x67,
|
||||
0x69, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x64, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c,
|
||||
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62,
|
||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x12,
|
||||
0x2c, 0x0a, 0x11, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73,
|
||||
0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x68, 0x6f, 0x73, 0x74,
|
||||
0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x37, 0x0a,
|
||||
0x1f, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x48, 0x6f, 0x73, 0x74,
|
||||
0x2a, 0x0a, 0x10, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x4a,
|
||||
0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, 0x77, 0x72, 0x69,
|
||||
0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x67, 0x0a, 0x21, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x48, 0x6f, 0x73, 0x74,
|
||||
0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x22, 0x50, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
|
||||
0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x68, 0x6f,
|
||||
0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72,
|
||||
0x65, 0x63, 0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0xb7, 0x0c, 0x0a, 0x0e, 0x48, 0x54, 0x54,
|
||||
0x50, 0x57, 0x65, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x12, 0x18, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||||
0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
|
||||
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x6f, 0x6e, 0x66,
|
||||
0x69, 0x67, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
|
||||
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43,
|
||||
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a,
|
||||
0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x12, 0x18,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
|
||||
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61,
|
||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x47, 0x7a, 0x69, 0x70, 0x12, 0x1c, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62,
|
||||
0x47, 0x7a, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x14, 0x75,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x68, 0x61, 0x72,
|
||||
0x73, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71,
|
||||
0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65,
|
||||
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x0c, 0x52, 0x11, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73,
|
||||
0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x37, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x54, 0x54, 0x50,
|
||||
0x57, 0x65, 0x62, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x22, 0x50, 0x0a,
|
||||
0x20, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x48, 0x6f, 0x73, 0x74,
|
||||
0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x2c, 0x0a, 0x11, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
|
||||
0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x68, 0x6f,
|
||||
0x73, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x32,
|
||||
0x80, 0x0d, 0x0a, 0x0e, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69,
|
||||
0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
||||
0x57, 0x65, 0x62, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48,
|
||||
0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x12, 0x1d,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48,
|
||||
0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a,
|
||||
0x18, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50,
|
||||
0x57, 0x65, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46,
|
||||
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48,
|
||||
0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
|
||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
|
||||
0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62,
|
||||
0x47, 0x7a, 0x69, 0x70, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x47, 0x7a, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
|
||||
0x73, 0x73, 0x12, 0x47, 0x0a, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
||||
0x57, 0x65, 0x62, 0x43, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x68, 0x61,
|
||||
0x72, 0x73, 0x65, 0x74, 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, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x12, 0x55, 0x0a, 0x1b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
|
||||
0x26, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57,
|
||||
0x65, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
|
||||
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74,
|
||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e,
|
||||
0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
||||
0x57, 0x65, 0x62, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
|
||||
0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
||||
0x57, 0x65, 0x62, 0x50, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x50, 0x61, 0x67, 0x65, 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, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74,
|
||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
|
||||
0x67, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
||||
0x50, 0x57, 0x65, 0x62, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 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, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64,
|
||||
0x65, 0x72, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64,
|
||||
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
|
||||
0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x1b, 0x75, 0x70, 0x64,
|
||||
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x53, 0x68, 0x75, 0x74,
|
||||
0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x75,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x50, 0x61, 0x67, 0x65,
|
||||
0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
||||
0x50, 0x57, 0x65, 0x62, 0x50, 0x61, 0x67, 0x65, 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, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x41, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a,
|
||||
0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x53, 0x74,
|
||||
0x61, 0x74, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61,
|
||||
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
|
||||
0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x12, 0x20,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65,
|
||||
0x62, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x4c, 0x6f, 0x63,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x57, 0x0a,
|
||||
0x1c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65,
|
||||
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x54, 0x6f, 0x48, 0x54, 0x54, 0x50, 0x53, 0x12, 0x27, 0x2e,
|
||||
0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x53, 0x74, 0x61, 0x74,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
|
||||
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74,
|
||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x1d, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62,
|
||||
0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x54, 0x6f, 0x48, 0x54, 0x54, 0x50, 0x53, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53,
|
||||
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
|
||||
0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
||||
0x57, 0x65, 0x62, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,
|
||||
0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x15,
|
||||
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x46, 0x69, 0x72,
|
||||
0x65, 0x77, 0x61, 0x6c, 0x6c, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
|
||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
|
||||
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74,
|
||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
||||
0x50, 0x57, 0x65, 0x62, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x57, 0x0a, 0x1c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x54, 0x6f, 0x48,
|
||||
0x54, 0x54, 0x50, 0x53, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x54,
|
||||
0x6f, 0x48, 0x54, 0x54, 0x50, 0x53, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4b, 0x0a,
|
||||
0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x57, 0x65,
|
||||
0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
|
||||
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63,
|
||||
0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x14, 0x75, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x46, 0x61, 0x73, 0x74, 0x63,
|
||||
0x67, 0x69, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x57, 0x65, 0x62, 0x46, 0x61, 0x73, 0x74, 0x63, 0x67, 0x69, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
|
||||
0x50, 0x57, 0x65, 0x62, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73,
|
||||
@@ -1548,7 +1614,7 @@ func file_service_http_web_proto_rawDescGZIP() []byte {
|
||||
return file_service_http_web_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_http_web_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
||||
var file_service_http_web_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
|
||||
var file_service_http_web_proto_goTypes = []interface{}{
|
||||
(*CreateHTTPWebRequest)(nil), // 0: pb.CreateHTTPWebRequest
|
||||
(*CreateHTTPWebResponse)(nil), // 1: pb.CreateHTTPWebResponse
|
||||
@@ -1570,15 +1636,16 @@ var file_service_http_web_proto_goTypes = []interface{}{
|
||||
(*UpdateHTTPWebLocationsRequest)(nil), // 17: pb.UpdateHTTPWebLocationsRequest
|
||||
(*UpdateHTTPWebRedirectToHTTPSRequest)(nil), // 18: pb.UpdateHTTPWebRedirectToHTTPSRequest
|
||||
(*UpdateHTTPWebWebsocketRequest)(nil), // 19: pb.UpdateHTTPWebWebsocketRequest
|
||||
(*UpdateHTTPWebRewriteRulesRequest)(nil), // 20: pb.UpdateHTTPWebRewriteRulesRequest
|
||||
(*UpdateHTTPWebHostRedirectsRequest)(nil), // 21: pb.UpdateHTTPWebHostRedirectsRequest
|
||||
(*FindHTTPWebHostRedirectsRequest)(nil), // 22: pb.FindHTTPWebHostRedirectsRequest
|
||||
(*FindHTTPWebHostRedirectsResponse)(nil), // 23: pb.FindHTTPWebHostRedirectsResponse
|
||||
(*HTTPWeb)(nil), // 24: pb.HTTPWeb
|
||||
(*RPCSuccess)(nil), // 25: pb.RPCSuccess
|
||||
(*UpdateHTTPWebFastcgiRequest)(nil), // 20: pb.UpdateHTTPWebFastcgiRequest
|
||||
(*UpdateHTTPWebRewriteRulesRequest)(nil), // 21: pb.UpdateHTTPWebRewriteRulesRequest
|
||||
(*UpdateHTTPWebHostRedirectsRequest)(nil), // 22: pb.UpdateHTTPWebHostRedirectsRequest
|
||||
(*FindHTTPWebHostRedirectsRequest)(nil), // 23: pb.FindHTTPWebHostRedirectsRequest
|
||||
(*FindHTTPWebHostRedirectsResponse)(nil), // 24: pb.FindHTTPWebHostRedirectsResponse
|
||||
(*HTTPWeb)(nil), // 25: pb.HTTPWeb
|
||||
(*RPCSuccess)(nil), // 26: pb.RPCSuccess
|
||||
}
|
||||
var file_service_http_web_proto_depIdxs = []int32{
|
||||
24, // 0: pb.FindEnabledHTTPWebResponse.web:type_name -> pb.HTTPWeb
|
||||
25, // 0: pb.FindEnabledHTTPWebResponse.web:type_name -> pb.HTTPWeb
|
||||
0, // 1: pb.HTTPWebService.createHTTPWeb:input_type -> pb.CreateHTTPWebRequest
|
||||
2, // 2: pb.HTTPWebService.findEnabledHTTPWeb:input_type -> pb.FindEnabledHTTPWebRequest
|
||||
4, // 3: pb.HTTPWebService.findEnabledHTTPWebConfig:input_type -> pb.FindEnabledHTTPWebConfigRequest
|
||||
@@ -1596,31 +1663,33 @@ var file_service_http_web_proto_depIdxs = []int32{
|
||||
17, // 15: pb.HTTPWebService.updateHTTPWebLocations:input_type -> pb.UpdateHTTPWebLocationsRequest
|
||||
18, // 16: pb.HTTPWebService.updateHTTPWebRedirectToHTTPS:input_type -> pb.UpdateHTTPWebRedirectToHTTPSRequest
|
||||
19, // 17: pb.HTTPWebService.updateHTTPWebWebsocket:input_type -> pb.UpdateHTTPWebWebsocketRequest
|
||||
20, // 18: pb.HTTPWebService.updateHTTPWebRewriteRules:input_type -> pb.UpdateHTTPWebRewriteRulesRequest
|
||||
21, // 19: pb.HTTPWebService.updateHTTPWebHostRedirects:input_type -> pb.UpdateHTTPWebHostRedirectsRequest
|
||||
22, // 20: pb.HTTPWebService.findHTTPWebHostRedirects:input_type -> pb.FindHTTPWebHostRedirectsRequest
|
||||
1, // 21: pb.HTTPWebService.createHTTPWeb:output_type -> pb.CreateHTTPWebResponse
|
||||
3, // 22: pb.HTTPWebService.findEnabledHTTPWeb:output_type -> pb.FindEnabledHTTPWebResponse
|
||||
5, // 23: pb.HTTPWebService.findEnabledHTTPWebConfig:output_type -> pb.FindEnabledHTTPWebConfigResponse
|
||||
25, // 24: pb.HTTPWebService.updateHTTPWeb:output_type -> pb.RPCSuccess
|
||||
25, // 25: pb.HTTPWebService.updateHTTPWebGzip:output_type -> pb.RPCSuccess
|
||||
25, // 26: pb.HTTPWebService.updateHTTPWebCharset:output_type -> pb.RPCSuccess
|
||||
25, // 27: pb.HTTPWebService.updateHTTPWebRequestHeader:output_type -> pb.RPCSuccess
|
||||
25, // 28: pb.HTTPWebService.updateHTTPWebResponseHeader:output_type -> pb.RPCSuccess
|
||||
25, // 29: pb.HTTPWebService.updateHTTPWebShutdown:output_type -> pb.RPCSuccess
|
||||
25, // 30: pb.HTTPWebService.updateHTTPWebPages:output_type -> pb.RPCSuccess
|
||||
25, // 31: pb.HTTPWebService.updateHTTPWebAccessLog:output_type -> pb.RPCSuccess
|
||||
25, // 32: pb.HTTPWebService.updateHTTPWebStat:output_type -> pb.RPCSuccess
|
||||
25, // 33: pb.HTTPWebService.updateHTTPWebCache:output_type -> pb.RPCSuccess
|
||||
25, // 34: pb.HTTPWebService.updateHTTPWebFirewall:output_type -> pb.RPCSuccess
|
||||
25, // 35: pb.HTTPWebService.updateHTTPWebLocations:output_type -> pb.RPCSuccess
|
||||
25, // 36: pb.HTTPWebService.updateHTTPWebRedirectToHTTPS:output_type -> pb.RPCSuccess
|
||||
25, // 37: pb.HTTPWebService.updateHTTPWebWebsocket:output_type -> pb.RPCSuccess
|
||||
25, // 38: pb.HTTPWebService.updateHTTPWebRewriteRules:output_type -> pb.RPCSuccess
|
||||
25, // 39: pb.HTTPWebService.updateHTTPWebHostRedirects:output_type -> pb.RPCSuccess
|
||||
23, // 40: pb.HTTPWebService.findHTTPWebHostRedirects:output_type -> pb.FindHTTPWebHostRedirectsResponse
|
||||
21, // [21:41] is the sub-list for method output_type
|
||||
1, // [1:21] is the sub-list for method input_type
|
||||
20, // 18: pb.HTTPWebService.updateHTTPWebFastcgi:input_type -> pb.UpdateHTTPWebFastcgiRequest
|
||||
21, // 19: pb.HTTPWebService.updateHTTPWebRewriteRules:input_type -> pb.UpdateHTTPWebRewriteRulesRequest
|
||||
22, // 20: pb.HTTPWebService.updateHTTPWebHostRedirects:input_type -> pb.UpdateHTTPWebHostRedirectsRequest
|
||||
23, // 21: pb.HTTPWebService.findHTTPWebHostRedirects:input_type -> pb.FindHTTPWebHostRedirectsRequest
|
||||
1, // 22: pb.HTTPWebService.createHTTPWeb:output_type -> pb.CreateHTTPWebResponse
|
||||
3, // 23: pb.HTTPWebService.findEnabledHTTPWeb:output_type -> pb.FindEnabledHTTPWebResponse
|
||||
5, // 24: pb.HTTPWebService.findEnabledHTTPWebConfig:output_type -> pb.FindEnabledHTTPWebConfigResponse
|
||||
26, // 25: pb.HTTPWebService.updateHTTPWeb:output_type -> pb.RPCSuccess
|
||||
26, // 26: pb.HTTPWebService.updateHTTPWebGzip:output_type -> pb.RPCSuccess
|
||||
26, // 27: pb.HTTPWebService.updateHTTPWebCharset:output_type -> pb.RPCSuccess
|
||||
26, // 28: pb.HTTPWebService.updateHTTPWebRequestHeader:output_type -> pb.RPCSuccess
|
||||
26, // 29: pb.HTTPWebService.updateHTTPWebResponseHeader:output_type -> pb.RPCSuccess
|
||||
26, // 30: pb.HTTPWebService.updateHTTPWebShutdown:output_type -> pb.RPCSuccess
|
||||
26, // 31: pb.HTTPWebService.updateHTTPWebPages:output_type -> pb.RPCSuccess
|
||||
26, // 32: pb.HTTPWebService.updateHTTPWebAccessLog:output_type -> pb.RPCSuccess
|
||||
26, // 33: pb.HTTPWebService.updateHTTPWebStat:output_type -> pb.RPCSuccess
|
||||
26, // 34: pb.HTTPWebService.updateHTTPWebCache:output_type -> pb.RPCSuccess
|
||||
26, // 35: pb.HTTPWebService.updateHTTPWebFirewall:output_type -> pb.RPCSuccess
|
||||
26, // 36: pb.HTTPWebService.updateHTTPWebLocations:output_type -> pb.RPCSuccess
|
||||
26, // 37: pb.HTTPWebService.updateHTTPWebRedirectToHTTPS:output_type -> pb.RPCSuccess
|
||||
26, // 38: pb.HTTPWebService.updateHTTPWebWebsocket:output_type -> pb.RPCSuccess
|
||||
26, // 39: pb.HTTPWebService.updateHTTPWebFastcgi:output_type -> pb.RPCSuccess
|
||||
26, // 40: pb.HTTPWebService.updateHTTPWebRewriteRules:output_type -> pb.RPCSuccess
|
||||
26, // 41: pb.HTTPWebService.updateHTTPWebHostRedirects:output_type -> pb.RPCSuccess
|
||||
24, // 42: pb.HTTPWebService.findHTTPWebHostRedirects:output_type -> pb.FindHTTPWebHostRedirectsResponse
|
||||
22, // [22:43] is the sub-list for method output_type
|
||||
1, // [1:22] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
@@ -1875,7 +1944,7 @@ func file_service_http_web_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_http_web_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UpdateHTTPWebRewriteRulesRequest); i {
|
||||
switch v := v.(*UpdateHTTPWebFastcgiRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1887,7 +1956,7 @@ func file_service_http_web_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_http_web_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UpdateHTTPWebHostRedirectsRequest); i {
|
||||
switch v := v.(*UpdateHTTPWebRewriteRulesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1899,7 +1968,7 @@ func file_service_http_web_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_http_web_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindHTTPWebHostRedirectsRequest); i {
|
||||
switch v := v.(*UpdateHTTPWebHostRedirectsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1911,6 +1980,18 @@ func file_service_http_web_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_http_web_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindHTTPWebHostRedirectsRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_http_web_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindHTTPWebHostRedirectsResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1929,7 +2010,7 @@ func file_service_http_web_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_service_http_web_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 24,
|
||||
NumMessages: 25,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
@@ -1989,6 +2070,8 @@ type HTTPWebServiceClient interface {
|
||||
UpdateHTTPWebRedirectToHTTPS(ctx context.Context, in *UpdateHTTPWebRedirectToHTTPSRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 更改Websocket设置
|
||||
UpdateHTTPWebWebsocket(ctx context.Context, in *UpdateHTTPWebWebsocketRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 更改Fastcgi设置
|
||||
UpdateHTTPWebFastcgi(ctx context.Context, in *UpdateHTTPWebFastcgiRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 更改重写规则设置
|
||||
UpdateHTTPWebRewriteRules(ctx context.Context, in *UpdateHTTPWebRewriteRulesRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 更改主机跳转设置
|
||||
@@ -2158,6 +2241,15 @@ func (c *hTTPWebServiceClient) UpdateHTTPWebWebsocket(ctx context.Context, in *U
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPWebServiceClient) UpdateHTTPWebFastcgi(ctx context.Context, in *UpdateHTTPWebFastcgiRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.HTTPWebService/updateHTTPWebFastcgi", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPWebServiceClient) UpdateHTTPWebRewriteRules(ctx context.Context, in *UpdateHTTPWebRewriteRulesRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.HTTPWebService/updateHTTPWebRewriteRules", in, out, opts...)
|
||||
@@ -2221,6 +2313,8 @@ type HTTPWebServiceServer interface {
|
||||
UpdateHTTPWebRedirectToHTTPS(context.Context, *UpdateHTTPWebRedirectToHTTPSRequest) (*RPCSuccess, error)
|
||||
// 更改Websocket设置
|
||||
UpdateHTTPWebWebsocket(context.Context, *UpdateHTTPWebWebsocketRequest) (*RPCSuccess, error)
|
||||
// 更改Fastcgi设置
|
||||
UpdateHTTPWebFastcgi(context.Context, *UpdateHTTPWebFastcgiRequest) (*RPCSuccess, error)
|
||||
// 更改重写规则设置
|
||||
UpdateHTTPWebRewriteRules(context.Context, *UpdateHTTPWebRewriteRulesRequest) (*RPCSuccess, error)
|
||||
// 更改主机跳转设置
|
||||
@@ -2284,6 +2378,9 @@ func (*UnimplementedHTTPWebServiceServer) UpdateHTTPWebRedirectToHTTPS(context.C
|
||||
func (*UnimplementedHTTPWebServiceServer) UpdateHTTPWebWebsocket(context.Context, *UpdateHTTPWebWebsocketRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPWebWebsocket not implemented")
|
||||
}
|
||||
func (*UnimplementedHTTPWebServiceServer) UpdateHTTPWebFastcgi(context.Context, *UpdateHTTPWebFastcgiRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPWebFastcgi not implemented")
|
||||
}
|
||||
func (*UnimplementedHTTPWebServiceServer) UpdateHTTPWebRewriteRules(context.Context, *UpdateHTTPWebRewriteRulesRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPWebRewriteRules not implemented")
|
||||
}
|
||||
@@ -2604,6 +2701,24 @@ func _HTTPWebService_UpdateHTTPWebWebsocket_Handler(srv interface{}, ctx context
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HTTPWebService_UpdateHTTPWebFastcgi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateHTTPWebFastcgiRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HTTPWebServiceServer).UpdateHTTPWebFastcgi(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.HTTPWebService/UpdateHTTPWebFastcgi",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HTTPWebServiceServer).UpdateHTTPWebFastcgi(ctx, req.(*UpdateHTTPWebFastcgiRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HTTPWebService_UpdateHTTPWebRewriteRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateHTTPWebRewriteRulesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -2730,6 +2845,10 @@ var _HTTPWebService_serviceDesc = grpc.ServiceDesc{
|
||||
MethodName: "updateHTTPWebWebsocket",
|
||||
Handler: _HTTPWebService_UpdateHTTPWebWebsocket_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateHTTPWebFastcgi",
|
||||
Handler: _HTTPWebService_UpdateHTTPWebFastcgi_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateHTTPWebRewriteRules",
|
||||
Handler: _HTTPWebService_UpdateHTTPWebRewriteRules_Handler,
|
||||
|
||||
16
pkg/rpc/protos/models/model_http_fastcgi.proto
Normal file
16
pkg/rpc/protos/models/model_http_fastcgi.proto
Normal file
@@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// HTTP Fastcgi定义
|
||||
message HTTPFastcgi {
|
||||
int64 id = 1;
|
||||
bool isOn = 2;
|
||||
string address = 3;
|
||||
bytes paramsJSON = 4;
|
||||
bytes readTimeoutJSON = 5;
|
||||
bytes connTimeoutJSON = 6;
|
||||
int32 poolSize = 7;
|
||||
string pathInfoPattern = 8;
|
||||
}
|
||||
67
pkg/rpc/protos/service_http_fastcgi.proto
Normal file
67
pkg/rpc/protos/service_http_fastcgi.proto
Normal file
@@ -0,0 +1,67 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/rpc_messages.proto";
|
||||
import "models/model_http_fastcgi.proto";
|
||||
|
||||
// Fastcgi服务
|
||||
service HTTPFastcgiService {
|
||||
// 创建Fastcgi
|
||||
rpc createHTTPFastcgi (CreateHTTPFastcgiRequest) returns (CreateHTTPFastcgiResponse);
|
||||
|
||||
// 修改Fastcgi
|
||||
rpc updateHTTPFastcgi (UpdateHTTPFastcgiRequest) returns (RPCSuccess);
|
||||
|
||||
// 获取Fastcgi详情
|
||||
rpc findEnabledHTTPFastcgi (FindEnabledHTTPFastcgiRequest) returns (FindEnabledHTTPFastcgiResponse);
|
||||
|
||||
// 获取Fastcgi配置
|
||||
rpc findEnabledHTTPFastcgiConfig (FindEnabledHTTPFastcgiConfigRequest) returns (FindEnabledHTTPFastcgiConfigResponse);
|
||||
}
|
||||
|
||||
// 创建Fastcgi服务
|
||||
message CreateHTTPFastcgiRequest {
|
||||
bool isOn = 1;
|
||||
string address = 2;
|
||||
bytes paramsJSON = 3;
|
||||
bytes readTimeoutJSON = 4;
|
||||
bytes connTimeoutJSON = 5;
|
||||
int32 poolSize = 6;
|
||||
string pathInfoPattern = 7;
|
||||
}
|
||||
|
||||
message CreateHTTPFastcgiResponse {
|
||||
int64 httpFastcgiId = 1;
|
||||
}
|
||||
|
||||
// 修改Fastcgi服务
|
||||
message UpdateHTTPFastcgiRequest {
|
||||
int64 httpFastcgiId = 1;
|
||||
bool isOn = 2;
|
||||
string address = 3;
|
||||
bytes paramsJSON = 4;
|
||||
bytes readTimeoutJSON = 5;
|
||||
bytes connTimeoutJSON = 6;
|
||||
int32 poolSize = 7;
|
||||
string pathInfoPattern = 8;
|
||||
}
|
||||
|
||||
// 获取Fastcgi详情
|
||||
message FindEnabledHTTPFastcgiRequest {
|
||||
int64 httpFastcgiId = 1;
|
||||
}
|
||||
|
||||
message FindEnabledHTTPFastcgiResponse {
|
||||
HTTPFastcgi httpFastcgi = 1;
|
||||
}
|
||||
|
||||
// 获取Fastcgi配置
|
||||
message FindEnabledHTTPFastcgiConfigRequest {
|
||||
int64 httpFastcgiId = 1;
|
||||
}
|
||||
|
||||
message FindEnabledHTTPFastcgiConfigResponse {
|
||||
bytes httpFastcgiJSON = 1;
|
||||
}
|
||||
@@ -26,21 +26,21 @@ message CreateHTTPGzipRequest {
|
||||
}
|
||||
|
||||
message CreateHTTPGzipResponse {
|
||||
int64 gzipId = 1;
|
||||
int64 httpGzipId = 1;
|
||||
}
|
||||
|
||||
// 查找Gzip配置
|
||||
message FindEnabledGzipConfigRequest {
|
||||
int64 gzipId = 1;
|
||||
int64 httpGzipId = 1;
|
||||
}
|
||||
|
||||
message FindEnabledGzipConfigResponse {
|
||||
bytes gzipJSON = 1;
|
||||
bytes httpGzipJSON = 1;
|
||||
}
|
||||
|
||||
// 修改Gzip配置
|
||||
message UpdateHTTPGzipRequest {
|
||||
int64 gzipId = 1;
|
||||
int64 httpGzipId = 1;
|
||||
int32 level = 2;
|
||||
SizeCapacity minLength = 3;
|
||||
SizeCapacity maxLength = 4;
|
||||
|
||||
@@ -58,6 +58,9 @@ service HTTPWebService {
|
||||
// 更改Websocket设置
|
||||
rpc updateHTTPWebWebsocket (UpdateHTTPWebWebsocketRequest) returns (RPCSuccess);
|
||||
|
||||
// 更改Fastcgi设置
|
||||
rpc updateHTTPWebFastcgi (UpdateHTTPWebFastcgiRequest) returns (RPCSuccess);
|
||||
|
||||
// 更改重写规则设置
|
||||
rpc updateHTTPWebRewriteRules (UpdateHTTPWebRewriteRulesRequest) returns (RPCSuccess);
|
||||
|
||||
@@ -179,6 +182,12 @@ message UpdateHTTPWebWebsocketRequest {
|
||||
bytes websocketJSON = 2;
|
||||
}
|
||||
|
||||
// 更改Fastcgi设置
|
||||
message UpdateHTTPWebFastcgiRequest {
|
||||
int64 webId = 1;
|
||||
bytes fastcgiJSON = 2;
|
||||
}
|
||||
|
||||
// 更改重写规则设置
|
||||
message UpdateHTTPWebRewriteRulesRequest {
|
||||
int64 webId = 1;
|
||||
|
||||
167
pkg/serverconfigs/http_fastcgi_config.go
Normal file
167
pkg/serverconfigs/http_fastcgi_config.go
Normal file
@@ -0,0 +1,167 @@
|
||||
package serverconfigs
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"time"
|
||||
)
|
||||
|
||||
// HTTPFastcgiParam Fastcgi参数
|
||||
type HTTPFastcgiParam struct {
|
||||
Name string `yaml:"name" json:"name"`
|
||||
Value string `yaml:"value" json:"value"`
|
||||
}
|
||||
|
||||
// HTTPFastcgiConfig Fastcgi配置
|
||||
type HTTPFastcgiConfig struct {
|
||||
Id int64 `yaml:"id" json:"id"`
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
|
||||
// fastcgi地址配置
|
||||
// 支持unix:/tmp/php-fpm.sock ...
|
||||
Address string `yaml:"address" json:"address"`
|
||||
|
||||
Index string `yaml:"index" json:"index"` // @TODO
|
||||
Params []*HTTPFastcgiParam `yaml:"params" json:"params"` // 参数
|
||||
ReadTimeout *shared.TimeDuration `yaml:"readTimeout" json:"readTimeout"` // @TODO 读取超时时间
|
||||
SendTimeout *shared.TimeDuration `yaml:"sendTimeout" json:"sendTimeout"` // @TODO 发送超时时间
|
||||
ConnTimeout *shared.TimeDuration `yaml:"connTimeout" json:"connTimeout"` // @TODO 连接超时时间
|
||||
Weight int `yaml:"weight" json:"weight"` // TODO 权重
|
||||
PoolSize int `yaml:"poolSize" json:"poolSize"` // 连接池尺寸
|
||||
PathInfoPattern string `yaml:"pathInfoPattern" json:"pathInfoPattern"` // PATH_INFO匹配正则
|
||||
|
||||
network string // 协议:tcp, unix
|
||||
address string // 地址
|
||||
|
||||
paramsMap maps.Map
|
||||
readTimeout time.Duration
|
||||
connTimeout time.Duration
|
||||
pathInfoRegexp *regexp.Regexp
|
||||
}
|
||||
|
||||
// Init 初始化
|
||||
func (this *HTTPFastcgiConfig) Init() error {
|
||||
params := map[string]string{}
|
||||
for _, p := range this.Params {
|
||||
params[p.Name] = p.Value
|
||||
}
|
||||
this.paramsMap = maps.NewMap(params)
|
||||
if !this.paramsMap.Has("SCRIPT_FILENAME") {
|
||||
this.paramsMap["SCRIPT_FILENAME"] = ""
|
||||
}
|
||||
if !this.paramsMap.Has("REDIRECT_STATUS") {
|
||||
this.paramsMap["REDIRECT_STATUS"] = "200"
|
||||
}
|
||||
if !this.paramsMap.Has("GATEWAY_INTERFACE") {
|
||||
this.paramsMap["GATEWAY_INTERFACE"] = "CGI/1.1"
|
||||
}
|
||||
|
||||
// 校验地址
|
||||
if regexp.MustCompile("^\\d+$").MatchString(this.Address) {
|
||||
this.network = "tcp"
|
||||
this.address = "127.0.0.1:" + this.Address
|
||||
} else if regexp.MustCompile("^(.*):(\\d+)$").MatchString(this.Address) {
|
||||
matches := regexp.MustCompile("^(.*):(\\d+)$").FindStringSubmatch(this.Address)
|
||||
ip := matches[1]
|
||||
port := matches[2]
|
||||
if len(ip) == 0 {
|
||||
ip = "127.0.0.1"
|
||||
}
|
||||
this.network = "tcp"
|
||||
this.address = ip + ":" + port
|
||||
} else if regexp.MustCompile("^\\d+\\.\\d+.\\d+.\\d+$").MatchString(this.Address) {
|
||||
this.network = "tcp"
|
||||
this.address = this.Address + ":9000"
|
||||
} else if regexp.MustCompile("^unix:(.+)$").MatchString(this.Address) {
|
||||
matches := regexp.MustCompile("^unix:(.+)$").FindStringSubmatch(this.Address)
|
||||
path := matches[1]
|
||||
this.network = "unix"
|
||||
this.address = path
|
||||
} else if regexp.MustCompile("^[./].+$").MatchString(this.Address) {
|
||||
this.network = "unix"
|
||||
this.address = this.Address
|
||||
} else {
|
||||
return errors.New("invalid 'pass' format")
|
||||
}
|
||||
|
||||
// 超时时间
|
||||
if this.ReadTimeout != nil {
|
||||
this.readTimeout = this.ReadTimeout.Duration()
|
||||
} else {
|
||||
this.readTimeout = 3 * time.Second
|
||||
}
|
||||
|
||||
if this.ConnTimeout != nil {
|
||||
this.connTimeout = this.ConnTimeout.Duration()
|
||||
} else {
|
||||
this.connTimeout = 10 * time.Second
|
||||
}
|
||||
|
||||
// PATH_INFO
|
||||
if len(this.PathInfoPattern) > 0 {
|
||||
reg, err := regexp.Compile(this.PathInfoPattern)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
this.pathInfoRegexp = reg
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// FilterParams 过滤参数
|
||||
func (this *HTTPFastcgiConfig) FilterParams() maps.Map {
|
||||
params := maps.NewMap(this.paramsMap)
|
||||
|
||||
// 自动添加参数
|
||||
script := params.GetString("SCRIPT_FILENAME")
|
||||
if len(script) > 0 {
|
||||
if !params.Has("SCRIPT_NAME") {
|
||||
params["SCRIPT_NAME"] = filepath.Base(script)
|
||||
}
|
||||
if !params.Has("DOCUMENT_ROOT") {
|
||||
params["DOCUMENT_ROOT"] = filepath.Dir(script)
|
||||
}
|
||||
if !params.Has("PWD") {
|
||||
params["PWD"] = filepath.Dir(script)
|
||||
}
|
||||
}
|
||||
|
||||
return params
|
||||
}
|
||||
|
||||
// ReadTimeoutDuration 超时时间
|
||||
func (this *HTTPFastcgiConfig) ReadTimeoutDuration() time.Duration {
|
||||
if this.readTimeout <= 0 {
|
||||
this.readTimeout = 30 * time.Second
|
||||
}
|
||||
return this.readTimeout
|
||||
}
|
||||
|
||||
// Network 网络协议
|
||||
func (this *HTTPFastcgiConfig) Network() string {
|
||||
return this.network
|
||||
}
|
||||
|
||||
// RealAddress 网络地址
|
||||
func (this *HTTPFastcgiConfig) RealAddress() string {
|
||||
return this.address
|
||||
}
|
||||
|
||||
// Param 读取参数
|
||||
func (this *HTTPFastcgiConfig) Param(paramName string) string {
|
||||
for _, p := range this.Params {
|
||||
if p.Name == paramName {
|
||||
return p.Value
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// PathInfoRegexp PATH_INFO正则
|
||||
func (this *HTTPFastcgiConfig) PathInfoRegexp() *regexp.Regexp {
|
||||
return this.pathInfoRegexp
|
||||
}
|
||||
9
pkg/serverconfigs/http_fastcgi_ref.go
Normal file
9
pkg/serverconfigs/http_fastcgi_ref.go
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package serverconfigs
|
||||
|
||||
type HTTPFastcgiRef struct {
|
||||
IsPrior bool `yaml:"isPrior" json:"isPrior"` // 是否覆盖
|
||||
IsOn bool `yaml:"isOn" json:"isOn"` // 是否开启
|
||||
FastcgiIds []int64 `yaml:"fastcgiIds" json:"fastcgiIds"` // Fastcgi ID列表
|
||||
}
|
||||
@@ -23,6 +23,7 @@ type HTTPLocationConfig struct {
|
||||
|
||||
patternType HTTPLocationPatternType // 规则类型:LocationPattern*
|
||||
prefix string // 前缀
|
||||
suffix string // 后缀
|
||||
path string // 精确的路径
|
||||
|
||||
reg *regexp.Regexp // 匹配规则
|
||||
@@ -31,7 +32,7 @@ type HTTPLocationConfig struct {
|
||||
}
|
||||
|
||||
func (this *HTTPLocationConfig) Init() error {
|
||||
err := this.parsePattern()
|
||||
err := this.ExtractPattern()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -76,7 +77,7 @@ func (this *HTTPLocationConfig) Init() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 组合参数为一个字符串
|
||||
// SetPattern 组合参数为一个字符串
|
||||
func (this *HTTPLocationConfig) SetPattern(pattern string, patternType int, caseInsensitive bool, reverse bool) {
|
||||
op := ""
|
||||
if patternType == HTTPLocationPatternTypePrefix {
|
||||
@@ -90,6 +91,14 @@ func (this *HTTPLocationConfig) SetPattern(pattern string, patternType int, case
|
||||
op = "!"
|
||||
}
|
||||
}
|
||||
} else if patternType == HTTPLocationPatternTypeSuffix {
|
||||
op = "suffix"
|
||||
if caseInsensitive {
|
||||
op += "*"
|
||||
}
|
||||
if reverse {
|
||||
op = "!" + op
|
||||
}
|
||||
} else if patternType == HTTPLocationPatternTypeExact {
|
||||
op = "="
|
||||
if caseInsensitive {
|
||||
@@ -113,32 +122,35 @@ func (this *HTTPLocationConfig) SetPattern(pattern string, patternType int, case
|
||||
this.Pattern = pattern
|
||||
}
|
||||
|
||||
// 模式类型
|
||||
// PatternType 模式类型
|
||||
func (this *HTTPLocationConfig) PatternType() int {
|
||||
return this.patternType
|
||||
}
|
||||
|
||||
// 模式字符串
|
||||
// PatternString 模式字符串
|
||||
// 去掉了模式字符
|
||||
func (this *HTTPLocationConfig) PatternString() string {
|
||||
if this.patternType == HTTPLocationPatternTypePrefix {
|
||||
return this.prefix
|
||||
}
|
||||
if this.patternType == HTTPLocationPatternTypeSuffix {
|
||||
return this.suffix
|
||||
}
|
||||
return this.path
|
||||
}
|
||||
|
||||
// 是否翻转
|
||||
// IsReverse 是否翻转
|
||||
func (this *HTTPLocationConfig) IsReverse() bool {
|
||||
return this.reverse
|
||||
}
|
||||
|
||||
// 是否大小写非敏感
|
||||
// IsCaseInsensitive 是否大小写非敏感
|
||||
func (this *HTTPLocationConfig) IsCaseInsensitive() bool {
|
||||
return this.caseInsensitive
|
||||
}
|
||||
|
||||
// 分析匹配条件
|
||||
func (this *HTTPLocationConfig) parsePattern() error {
|
||||
// ExtractPattern 分析匹配条件
|
||||
func (this *HTTPLocationConfig) ExtractPattern() error {
|
||||
// 分析pattern
|
||||
this.reverse = false
|
||||
this.caseInsensitive = false
|
||||
@@ -215,6 +227,22 @@ func (this *HTTPLocationConfig) parsePattern() error {
|
||||
this.reverse = true
|
||||
this.caseInsensitive = true
|
||||
this.path = pattern
|
||||
} else if cmd == "suffix" {
|
||||
this.patternType = HTTPLocationPatternTypeSuffix
|
||||
this.suffix = pattern
|
||||
} else if cmd == "suffix*" {
|
||||
this.patternType = HTTPLocationPatternTypeSuffix
|
||||
this.caseInsensitive = true
|
||||
this.suffix = pattern
|
||||
} else if cmd == "!suffix" {
|
||||
this.patternType = HTTPLocationPatternTypeSuffix
|
||||
this.reverse = true
|
||||
this.suffix = pattern
|
||||
} else if cmd == "!suffix*" {
|
||||
this.patternType = HTTPLocationPatternTypeSuffix
|
||||
this.caseInsensitive = true
|
||||
this.reverse = true
|
||||
this.suffix = pattern
|
||||
} else {
|
||||
this.patternType = HTTPLocationPatternTypePrefix
|
||||
this.prefix = pattern
|
||||
@@ -228,7 +256,7 @@ func (this *HTTPLocationConfig) parsePattern() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 判断是否匹配路径
|
||||
// Match 判断是否匹配路径
|
||||
// TODO 支持子Location
|
||||
func (this *HTTPLocationConfig) Match(path string, formatter func(source string) string) (vars map[string]string, isMatched bool) {
|
||||
// 判断条件
|
||||
@@ -252,6 +280,22 @@ func (this *HTTPLocationConfig) Match(path string, formatter func(source string)
|
||||
}
|
||||
}
|
||||
|
||||
if this.patternType == HTTPLocationPatternTypeSuffix {
|
||||
if this.reverse {
|
||||
if this.caseInsensitive {
|
||||
return nil, !strings.HasSuffix(strings.ToLower(path), strings.ToLower(this.suffix))
|
||||
} else {
|
||||
return nil, !strings.HasSuffix(path, this.suffix)
|
||||
}
|
||||
} else {
|
||||
if this.caseInsensitive {
|
||||
return nil, strings.HasSuffix(strings.ToLower(path), strings.ToLower(this.suffix))
|
||||
} else {
|
||||
return nil, strings.HasSuffix(path, this.suffix)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if this.patternType == HTTPLocationPatternTypeExact {
|
||||
if this.reverse {
|
||||
if this.caseInsensitive {
|
||||
|
||||
@@ -27,6 +27,8 @@ type HTTPWebConfig struct {
|
||||
Websocket *HTTPWebsocketConfig `yaml:"websocket" json:"websocket"` // Websocket配置
|
||||
RewriteRefs []*HTTPRewriteRef `yaml:"rewriteRefs" json:"rewriteRefs"` // 重写规则配置
|
||||
RewriteRules []*HTTPRewriteRule `yaml:"rewriteRules" json:"rewriteRules"` // 重写规则
|
||||
FastcgiRef *HTTPFastcgiRef `yaml:"fastcgiRef" json:"fastcgiRef"` // Fastcgi引用
|
||||
FastcgiList []*HTTPFastcgiConfig `yaml:"fastcgiList" json:"fastcgiList"` // Fastcgi配置
|
||||
|
||||
RequestHeaderPolicyRef *shared.HTTPHeaderPolicyRef `yaml:"requestHeaderPolicyRef" json:"requestHeaderPolicyRef"` // 请求Header
|
||||
RequestHeaderPolicy *shared.HTTPHeaderPolicy `yaml:"requestHeaderPolicy" json:"requestHeaderPolicy"` // 请求Header策略
|
||||
@@ -214,6 +216,14 @@ func (this *HTTPWebConfig) Init() error {
|
||||
}
|
||||
}
|
||||
|
||||
// fastcgi
|
||||
for _, fastcgi := range this.FastcgiList {
|
||||
err := fastcgi.Init()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -2,17 +2,18 @@ package serverconfigs
|
||||
|
||||
import "github.com/iwind/TeaGo/maps"
|
||||
|
||||
// 匹配类型
|
||||
// HTTPLocationPatternType 匹配类型
|
||||
type HTTPLocationPatternType = int
|
||||
|
||||
// 内置的匹配类型定义
|
||||
const (
|
||||
HTTPLocationPatternTypePrefix HTTPLocationPatternType = 1
|
||||
HTTPLocationPatternTypeSuffix HTTPLocationPatternType = 4
|
||||
HTTPLocationPatternTypeExact HTTPLocationPatternType = 2
|
||||
HTTPLocationPatternTypeRegexp HTTPLocationPatternType = 3
|
||||
)
|
||||
|
||||
// 取得所有的匹配类型信息
|
||||
// AllLocationPatternTypes 取得所有的匹配类型信息
|
||||
func AllLocationPatternTypes() []maps.Map {
|
||||
return []maps.Map{
|
||||
{
|
||||
@@ -20,6 +21,11 @@ func AllLocationPatternTypes() []maps.Map {
|
||||
"type": HTTPLocationPatternTypePrefix,
|
||||
"description": "带有此前缀的路径才会被匹配",
|
||||
},
|
||||
{
|
||||
"name": "匹配后缀",
|
||||
"type": HTTPLocationPatternTypeSuffix,
|
||||
"description": "带有此后缀的路径才会被匹配",
|
||||
},
|
||||
{
|
||||
"name": "精准匹配",
|
||||
"type": HTTPLocationPatternTypeExact,
|
||||
@@ -33,7 +39,7 @@ func AllLocationPatternTypes() []maps.Map {
|
||||
}
|
||||
}
|
||||
|
||||
// 查找单个匹配类型信息
|
||||
// FindLocationPatternType 查找单个匹配类型信息
|
||||
func FindLocationPatternType(patternType int) maps.Map {
|
||||
for _, t := range AllLocationPatternTypes() {
|
||||
if t["type"] == patternType {
|
||||
@@ -43,7 +49,7 @@ func FindLocationPatternType(patternType int) maps.Map {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 查找单个匹配类型名称
|
||||
// FindLocationPatternTypeName 查找单个匹配类型名称
|
||||
func FindLocationPatternTypeName(patternType int) string {
|
||||
t := FindLocationPatternType(patternType)
|
||||
if t == nil {
|
||||
|
||||
Reference in New Issue
Block a user