mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
825 lines
28 KiB
Go
825 lines
28 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.25.0
|
|
// protoc v3.12.3
|
|
// source: service_http_web.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
|
|
|
|
// 创建Web配置
|
|
type CreateHTTPWebRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Root string `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
|
|
}
|
|
|
|
func (x *CreateHTTPWebRequest) Reset() {
|
|
*x = CreateHTTPWebRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateHTTPWebRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateHTTPWebRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateHTTPWebRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_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 CreateHTTPWebRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateHTTPWebRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateHTTPWebRequest) GetRoot() string {
|
|
if x != nil {
|
|
return x.Root
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateHTTPWebResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
WebId int64 `protobuf:"varint,1,opt,name=webId,proto3" json:"webId,omitempty"`
|
|
}
|
|
|
|
func (x *CreateHTTPWebResponse) Reset() {
|
|
*x = CreateHTTPWebResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateHTTPWebResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateHTTPWebResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateHTTPWebResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_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 CreateHTTPWebResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateHTTPWebResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateHTTPWebResponse) GetWebId() int64 {
|
|
if x != nil {
|
|
return x.WebId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 查找Web配置
|
|
type FindEnabledHTTPWebRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
WebId int64 `protobuf:"varint,1,opt,name=webId,proto3" json:"webId,omitempty"`
|
|
}
|
|
|
|
func (x *FindEnabledHTTPWebRequest) Reset() {
|
|
*x = FindEnabledHTTPWebRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPWebRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledHTTPWebRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledHTTPWebRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_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 FindEnabledHTTPWebRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledHTTPWebRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPWebRequest) GetWebId() int64 {
|
|
if x != nil {
|
|
return x.WebId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledHTTPWebResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Web *HTTPWeb `protobuf:"bytes,1,opt,name=web,proto3" json:"web,omitempty"`
|
|
}
|
|
|
|
func (x *FindEnabledHTTPWebResponse) Reset() {
|
|
*x = FindEnabledHTTPWebResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPWebResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledHTTPWebResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledHTTPWebResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_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 FindEnabledHTTPWebResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledHTTPWebResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPWebResponse) GetWeb() *HTTPWeb {
|
|
if x != nil {
|
|
return x.Web
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 更改Web配置
|
|
type UpdateHTTPWebRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
WebId int64 `protobuf:"varint,1,opt,name=webId,proto3" json:"webId,omitempty"`
|
|
Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
|
|
}
|
|
|
|
func (x *UpdateHTTPWebRequest) Reset() {
|
|
*x = UpdateHTTPWebRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UpdateHTTPWebRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPWebRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPWebRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_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 UpdateHTTPWebRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPWebRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UpdateHTTPWebRequest) GetWebId() int64 {
|
|
if x != nil {
|
|
return x.WebId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPWebRequest) GetRoot() string {
|
|
if x != nil {
|
|
return x.Root
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateHTTPWebResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *UpdateHTTPWebResponse) Reset() {
|
|
*x = UpdateHTTPWebResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UpdateHTTPWebResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPWebResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPWebResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_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 UpdateHTTPWebResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPWebResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
// 更改Gzip配置
|
|
type UpdateHTTPWebGzipRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
WebId int64 `protobuf:"varint,1,opt,name=webId,proto3" json:"webId,omitempty"`
|
|
GzipId int64 `protobuf:"varint,2,opt,name=gzipId,proto3" json:"gzipId,omitempty"`
|
|
}
|
|
|
|
func (x *UpdateHTTPWebGzipRequest) Reset() {
|
|
*x = UpdateHTTPWebGzipRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UpdateHTTPWebGzipRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPWebGzipRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPWebGzipRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_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 UpdateHTTPWebGzipRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPWebGzipRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UpdateHTTPWebGzipRequest) GetWebId() int64 {
|
|
if x != nil {
|
|
return x.WebId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPWebGzipRequest) GetGzipId() int64 {
|
|
if x != nil {
|
|
return x.GzipId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateHTTPWebGzipResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *UpdateHTTPWebGzipResponse) Reset() {
|
|
*x = UpdateHTTPWebGzipResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_service_http_web_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UpdateHTTPWebGzipResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPWebGzipResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPWebGzipResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_web_proto_msgTypes[7]
|
|
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 UpdateHTTPWebGzipResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPWebGzipResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_web_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
var File_service_http_web_proto protoreflect.FileDescriptor
|
|
|
|
var file_service_http_web_proto_rawDesc = []byte{
|
|
0x0a, 0x16, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x77,
|
|
0x65, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x14, 0x6d, 0x6f,
|
|
0x64, 0x65, 0x6c, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x77, 0x65, 0x62, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x22, 0x2a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
|
0x57, 0x65, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f,
|
|
0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x22, 0x2d,
|
|
0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x22, 0x31, 0x0a,
|
|
0x19, 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, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65,
|
|
0x62, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64,
|
|
0x22, 0x3b, 0x0a, 0x1a, 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, 0x1d,
|
|
0x0a, 0x03, 0x77, 0x65, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62,
|
|
0x2e, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x52, 0x03, 0x77, 0x65, 0x62, 0x22, 0x40, 0x0a,
|
|
0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 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, 0x12, 0x0a, 0x04, 0x72,
|
|
0x6f, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x22,
|
|
0x17, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61,
|
|
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x47, 0x7a, 0x69, 0x70, 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, 0x16, 0x0a, 0x06, 0x67, 0x7a,
|
|
0x69, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x67, 0x7a, 0x69, 0x70,
|
|
0x49, 0x64, 0x22, 0x1b, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
|
|
0x57, 0x65, 0x62, 0x47, 0x7a, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32,
|
|
0xc3, 0x02, 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, 0x44, 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, 0x19, 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, 0x12, 0x50, 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, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61,
|
|
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x57, 0x65, 0x62, 0x47, 0x7a, 0x69, 0x70, 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_web_proto_rawDescOnce sync.Once
|
|
file_service_http_web_proto_rawDescData = file_service_http_web_proto_rawDesc
|
|
)
|
|
|
|
func file_service_http_web_proto_rawDescGZIP() []byte {
|
|
file_service_http_web_proto_rawDescOnce.Do(func() {
|
|
file_service_http_web_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_http_web_proto_rawDescData)
|
|
})
|
|
return file_service_http_web_proto_rawDescData
|
|
}
|
|
|
|
var file_service_http_web_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
var file_service_http_web_proto_goTypes = []interface{}{
|
|
(*CreateHTTPWebRequest)(nil), // 0: pb.CreateHTTPWebRequest
|
|
(*CreateHTTPWebResponse)(nil), // 1: pb.CreateHTTPWebResponse
|
|
(*FindEnabledHTTPWebRequest)(nil), // 2: pb.FindEnabledHTTPWebRequest
|
|
(*FindEnabledHTTPWebResponse)(nil), // 3: pb.FindEnabledHTTPWebResponse
|
|
(*UpdateHTTPWebRequest)(nil), // 4: pb.UpdateHTTPWebRequest
|
|
(*UpdateHTTPWebResponse)(nil), // 5: pb.UpdateHTTPWebResponse
|
|
(*UpdateHTTPWebGzipRequest)(nil), // 6: pb.UpdateHTTPWebGzipRequest
|
|
(*UpdateHTTPWebGzipResponse)(nil), // 7: pb.UpdateHTTPWebGzipResponse
|
|
(*HTTPWeb)(nil), // 8: pb.HTTPWeb
|
|
}
|
|
var file_service_http_web_proto_depIdxs = []int32{
|
|
8, // 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.updateHTTPWeb:input_type -> pb.UpdateHTTPWebRequest
|
|
6, // 4: pb.HTTPWebService.updateHTTPWebGzip:input_type -> pb.UpdateHTTPWebGzipRequest
|
|
1, // 5: pb.HTTPWebService.createHTTPWeb:output_type -> pb.CreateHTTPWebResponse
|
|
3, // 6: pb.HTTPWebService.findEnabledHTTPWeb:output_type -> pb.FindEnabledHTTPWebResponse
|
|
5, // 7: pb.HTTPWebService.updateHTTPWeb:output_type -> pb.UpdateHTTPWebResponse
|
|
7, // 8: pb.HTTPWebService.updateHTTPWebGzip:output_type -> pb.UpdateHTTPWebGzipResponse
|
|
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_web_proto_init() }
|
|
func file_service_http_web_proto_init() {
|
|
if File_service_http_web_proto != nil {
|
|
return
|
|
}
|
|
file_model_http_web_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_service_http_web_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CreateHTTPWebRequest); 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[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CreateHTTPWebResponse); 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[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*FindEnabledHTTPWebRequest); 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[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*FindEnabledHTTPWebResponse); 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[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UpdateHTTPWebRequest); 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[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UpdateHTTPWebResponse); 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[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UpdateHTTPWebGzipRequest); 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[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UpdateHTTPWebGzipResponse); 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_web_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 8,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_http_web_proto_goTypes,
|
|
DependencyIndexes: file_service_http_web_proto_depIdxs,
|
|
MessageInfos: file_service_http_web_proto_msgTypes,
|
|
}.Build()
|
|
File_service_http_web_proto = out.File
|
|
file_service_http_web_proto_rawDesc = nil
|
|
file_service_http_web_proto_goTypes = nil
|
|
file_service_http_web_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
|
|
|
|
// HTTPWebServiceClient is the client API for HTTPWebService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type HTTPWebServiceClient interface {
|
|
// 创建Web配置
|
|
CreateHTTPWeb(ctx context.Context, in *CreateHTTPWebRequest, opts ...grpc.CallOption) (*CreateHTTPWebResponse, error)
|
|
// 查找Web配置
|
|
FindEnabledHTTPWeb(ctx context.Context, in *FindEnabledHTTPWebRequest, opts ...grpc.CallOption) (*FindEnabledHTTPWebResponse, error)
|
|
// 更改Web配置
|
|
UpdateHTTPWeb(ctx context.Context, in *UpdateHTTPWebRequest, opts ...grpc.CallOption) (*UpdateHTTPWebResponse, error)
|
|
// 更改Gzip配置
|
|
UpdateHTTPWebGzip(ctx context.Context, in *UpdateHTTPWebGzipRequest, opts ...grpc.CallOption) (*UpdateHTTPWebGzipResponse, error)
|
|
}
|
|
|
|
type hTTPWebServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewHTTPWebServiceClient(cc grpc.ClientConnInterface) HTTPWebServiceClient {
|
|
return &hTTPWebServiceClient{cc}
|
|
}
|
|
|
|
func (c *hTTPWebServiceClient) CreateHTTPWeb(ctx context.Context, in *CreateHTTPWebRequest, opts ...grpc.CallOption) (*CreateHTTPWebResponse, error) {
|
|
out := new(CreateHTTPWebResponse)
|
|
err := c.cc.Invoke(ctx, "/pb.HTTPWebService/createHTTPWeb", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hTTPWebServiceClient) FindEnabledHTTPWeb(ctx context.Context, in *FindEnabledHTTPWebRequest, opts ...grpc.CallOption) (*FindEnabledHTTPWebResponse, error) {
|
|
out := new(FindEnabledHTTPWebResponse)
|
|
err := c.cc.Invoke(ctx, "/pb.HTTPWebService/findEnabledHTTPWeb", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hTTPWebServiceClient) UpdateHTTPWeb(ctx context.Context, in *UpdateHTTPWebRequest, opts ...grpc.CallOption) (*UpdateHTTPWebResponse, error) {
|
|
out := new(UpdateHTTPWebResponse)
|
|
err := c.cc.Invoke(ctx, "/pb.HTTPWebService/updateHTTPWeb", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hTTPWebServiceClient) UpdateHTTPWebGzip(ctx context.Context, in *UpdateHTTPWebGzipRequest, opts ...grpc.CallOption) (*UpdateHTTPWebGzipResponse, error) {
|
|
out := new(UpdateHTTPWebGzipResponse)
|
|
err := c.cc.Invoke(ctx, "/pb.HTTPWebService/updateHTTPWebGzip", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// HTTPWebServiceServer is the server API for HTTPWebService service.
|
|
type HTTPWebServiceServer interface {
|
|
// 创建Web配置
|
|
CreateHTTPWeb(context.Context, *CreateHTTPWebRequest) (*CreateHTTPWebResponse, error)
|
|
// 查找Web配置
|
|
FindEnabledHTTPWeb(context.Context, *FindEnabledHTTPWebRequest) (*FindEnabledHTTPWebResponse, error)
|
|
// 更改Web配置
|
|
UpdateHTTPWeb(context.Context, *UpdateHTTPWebRequest) (*UpdateHTTPWebResponse, error)
|
|
// 更改Gzip配置
|
|
UpdateHTTPWebGzip(context.Context, *UpdateHTTPWebGzipRequest) (*UpdateHTTPWebGzipResponse, error)
|
|
}
|
|
|
|
// UnimplementedHTTPWebServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedHTTPWebServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedHTTPWebServiceServer) CreateHTTPWeb(context.Context, *CreateHTTPWebRequest) (*CreateHTTPWebResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPWeb not implemented")
|
|
}
|
|
func (*UnimplementedHTTPWebServiceServer) FindEnabledHTTPWeb(context.Context, *FindEnabledHTTPWebRequest) (*FindEnabledHTTPWebResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledHTTPWeb not implemented")
|
|
}
|
|
func (*UnimplementedHTTPWebServiceServer) UpdateHTTPWeb(context.Context, *UpdateHTTPWebRequest) (*UpdateHTTPWebResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPWeb not implemented")
|
|
}
|
|
func (*UnimplementedHTTPWebServiceServer) UpdateHTTPWebGzip(context.Context, *UpdateHTTPWebGzipRequest) (*UpdateHTTPWebGzipResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPWebGzip not implemented")
|
|
}
|
|
|
|
func RegisterHTTPWebServiceServer(s *grpc.Server, srv HTTPWebServiceServer) {
|
|
s.RegisterService(&_HTTPWebService_serviceDesc, srv)
|
|
}
|
|
|
|
func _HTTPWebService_CreateHTTPWeb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateHTTPWebRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HTTPWebServiceServer).CreateHTTPWeb(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pb.HTTPWebService/CreateHTTPWeb",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HTTPWebServiceServer).CreateHTTPWeb(ctx, req.(*CreateHTTPWebRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HTTPWebService_FindEnabledHTTPWeb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(FindEnabledHTTPWebRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HTTPWebServiceServer).FindEnabledHTTPWeb(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pb.HTTPWebService/FindEnabledHTTPWeb",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HTTPWebServiceServer).FindEnabledHTTPWeb(ctx, req.(*FindEnabledHTTPWebRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HTTPWebService_UpdateHTTPWeb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateHTTPWebRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HTTPWebServiceServer).UpdateHTTPWeb(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pb.HTTPWebService/UpdateHTTPWeb",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HTTPWebServiceServer).UpdateHTTPWeb(ctx, req.(*UpdateHTTPWebRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HTTPWebService_UpdateHTTPWebGzip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateHTTPWebGzipRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HTTPWebServiceServer).UpdateHTTPWebGzip(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pb.HTTPWebService/UpdateHTTPWebGzip",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HTTPWebServiceServer).UpdateHTTPWebGzip(ctx, req.(*UpdateHTTPWebGzipRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _HTTPWebService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pb.HTTPWebService",
|
|
HandlerType: (*HTTPWebServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "createHTTPWeb",
|
|
Handler: _HTTPWebService_CreateHTTPWeb_Handler,
|
|
},
|
|
{
|
|
MethodName: "findEnabledHTTPWeb",
|
|
Handler: _HTTPWebService_FindEnabledHTTPWeb_Handler,
|
|
},
|
|
{
|
|
MethodName: "updateHTTPWeb",
|
|
Handler: _HTTPWebService_UpdateHTTPWeb_Handler,
|
|
},
|
|
{
|
|
MethodName: "updateHTTPWebGzip",
|
|
Handler: _HTTPWebService_UpdateHTTPWebGzip_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "service_http_web.proto",
|
|
}
|