节点自动升级功能之前的版本
This commit is contained in:
@@ -36,6 +36,8 @@ type HTTPDNSCluster struct {
|
||||
TlsPolicyJSON []byte `protobuf:"bytes,9,opt,name=tlsPolicyJSON,proto3" json:"tlsPolicyJSON,omitempty"`
|
||||
CreatedAt int64 `protobuf:"varint,10,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
|
||||
UpdatedAt int64 `protobuf:"varint,11,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
|
||||
AutoRemoteStart bool `protobuf:"varint,12,opt,name=autoRemoteStart,proto3" json:"autoRemoteStart,omitempty"`
|
||||
AccessLogIsOn bool `protobuf:"varint,13,opt,name=accessLogIsOn,proto3" json:"accessLogIsOn,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HTTPDNSCluster) Reset() {
|
||||
@@ -145,6 +147,20 @@ func (x *HTTPDNSCluster) GetUpdatedAt() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *HTTPDNSCluster) GetAutoRemoteStart() bool {
|
||||
if x != nil {
|
||||
return x.AutoRemoteStart
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *HTTPDNSCluster) GetAccessLogIsOn() bool {
|
||||
if x != nil {
|
||||
return x.AccessLogIsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_models_model_httpdns_cluster_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_models_model_httpdns_cluster_proto_rawDesc = []byte{
|
||||
|
||||
@@ -33,6 +33,8 @@ type CreateHTTPDNSClusterRequest struct {
|
||||
TlsPolicyJSON []byte `protobuf:"bytes,6,opt,name=tlsPolicyJSON,proto3" json:"tlsPolicyJSON,omitempty"`
|
||||
IsOn bool `protobuf:"varint,7,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||||
IsDefault bool `protobuf:"varint,8,opt,name=isDefault,proto3" json:"isDefault,omitempty"`
|
||||
AutoRemoteStart bool `protobuf:"varint,9,opt,name=autoRemoteStart,proto3" json:"autoRemoteStart,omitempty"`
|
||||
AccessLogIsOn bool `protobuf:"varint,10,opt,name=accessLogIsOn,proto3" json:"accessLogIsOn,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateHTTPDNSClusterRequest) Reset() {
|
||||
@@ -121,6 +123,20 @@ func (x *CreateHTTPDNSClusterRequest) GetIsDefault() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreateHTTPDNSClusterRequest) GetAutoRemoteStart() bool {
|
||||
if x != nil {
|
||||
return x.AutoRemoteStart
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreateHTTPDNSClusterRequest) GetAccessLogIsOn() bool {
|
||||
if x != nil {
|
||||
return x.AccessLogIsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type CreateHTTPDNSClusterResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -180,6 +196,8 @@ type UpdateHTTPDNSClusterRequest struct {
|
||||
TlsPolicyJSON []byte `protobuf:"bytes,7,opt,name=tlsPolicyJSON,proto3" json:"tlsPolicyJSON,omitempty"`
|
||||
IsOn bool `protobuf:"varint,8,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||||
IsDefault bool `protobuf:"varint,9,opt,name=isDefault,proto3" json:"isDefault,omitempty"`
|
||||
AutoRemoteStart bool `protobuf:"varint,10,opt,name=autoRemoteStart,proto3" json:"autoRemoteStart,omitempty"`
|
||||
AccessLogIsOn bool `protobuf:"varint,11,opt,name=accessLogIsOn,proto3" json:"accessLogIsOn,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPDNSClusterRequest) Reset() {
|
||||
@@ -275,6 +293,20 @@ func (x *UpdateHTTPDNSClusterRequest) GetIsDefault() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPDNSClusterRequest) GetAutoRemoteStart() bool {
|
||||
if x != nil {
|
||||
return x.AutoRemoteStart
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdateHTTPDNSClusterRequest) GetAccessLogIsOn() bool {
|
||||
if x != nil {
|
||||
return x.AccessLogIsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type DeleteHTTPDNSClusterRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
|
||||
@@ -558,6 +558,256 @@ func (x *UpdateHTTPDNSNodeLoginRequest) GetNodeLogin() *NodeLogin {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 检查HTTPDNS节点新版本
|
||||
type CheckHTTPDNSNodeLatestVersionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"`
|
||||
Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"`
|
||||
CurrentVersion string `protobuf:"bytes,3,opt,name=currentVersion,proto3" json:"currentVersion,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionRequest) Reset() {
|
||||
*x = CheckHTTPDNSNodeLatestVersionRequest{}
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CheckHTTPDNSNodeLatestVersionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CheckHTTPDNSNodeLatestVersionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CheckHTTPDNSNodeLatestVersionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_httpdns_node_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionRequest) GetOs() string {
|
||||
if x != nil {
|
||||
return x.Os
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionRequest) GetArch() string {
|
||||
if x != nil {
|
||||
return x.Arch
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionRequest) GetCurrentVersion() string {
|
||||
if x != nil {
|
||||
return x.CurrentVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CheckHTTPDNSNodeLatestVersionResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HasNewVersion bool `protobuf:"varint,1,opt,name=hasNewVersion,proto3" json:"hasNewVersion,omitempty"`
|
||||
NewVersion string `protobuf:"bytes,2,opt,name=newVersion,proto3" json:"newVersion,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionResponse) Reset() {
|
||||
*x = CheckHTTPDNSNodeLatestVersionResponse{}
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CheckHTTPDNSNodeLatestVersionResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[11]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CheckHTTPDNSNodeLatestVersionResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CheckHTTPDNSNodeLatestVersionResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_httpdns_node_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionResponse) GetHasNewVersion() bool {
|
||||
if x != nil {
|
||||
return x.HasNewVersion
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CheckHTTPDNSNodeLatestVersionResponse) GetNewVersion() string {
|
||||
if x != nil {
|
||||
return x.NewVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 下载最新HTTPDNS节点安装文件
|
||||
type DownloadHTTPDNSNodeInstallationFileRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"`
|
||||
Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"`
|
||||
ChunkOffset int64 `protobuf:"varint,3,opt,name=chunkOffset,proto3" json:"chunkOffset,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileRequest) Reset() {
|
||||
*x = DownloadHTTPDNSNodeInstallationFileRequest{}
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DownloadHTTPDNSNodeInstallationFileRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[12]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DownloadHTTPDNSNodeInstallationFileRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DownloadHTTPDNSNodeInstallationFileRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_httpdns_node_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileRequest) GetOs() string {
|
||||
if x != nil {
|
||||
return x.Os
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileRequest) GetArch() string {
|
||||
if x != nil {
|
||||
return x.Arch
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileRequest) GetChunkOffset() int64 {
|
||||
if x != nil {
|
||||
return x.ChunkOffset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type DownloadHTTPDNSNodeInstallationFileResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ChunkData []byte `protobuf:"bytes,1,opt,name=chunkData,proto3" json:"chunkData,omitempty"`
|
||||
Sum string `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"`
|
||||
Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Filename string `protobuf:"bytes,5,opt,name=filename,proto3" json:"filename,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) Reset() {
|
||||
*x = DownloadHTTPDNSNodeInstallationFileResponse{}
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DownloadHTTPDNSNodeInstallationFileResponse) ProtoMessage() {}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_httpdns_node_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DownloadHTTPDNSNodeInstallationFileResponse.ProtoReflect.Descriptor instead.
|
||||
func (*DownloadHTTPDNSNodeInstallationFileResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_httpdns_node_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) GetChunkData() []byte {
|
||||
if x != nil {
|
||||
return x.ChunkData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) GetSum() string {
|
||||
if x != nil {
|
||||
return x.Sum
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) GetOffset() int64 {
|
||||
if x != nil {
|
||||
return x.Offset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) GetVersion() string {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DownloadHTTPDNSNodeInstallationFileResponse) GetFilename() string {
|
||||
if x != nil {
|
||||
return x.Filename
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_service_httpdns_node_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_service_httpdns_node_proto_rawDesc = "" +
|
||||
@@ -600,7 +850,26 @@ const file_service_httpdns_node_proto_rawDesc = "" +
|
||||
"\x11installStatusJSON\x18\x06 \x01(\fR\x11installStatusJSON\"d\n" +
|
||||
"\x1dUpdateHTTPDNSNodeLoginRequest\x12\x16\n" +
|
||||
"\x06nodeId\x18\x01 \x01(\x03R\x06nodeId\x12+\n" +
|
||||
"\tnodeLogin\x18\x02 \x01(\v2\r.pb.NodeLoginR\tnodeLogin2\xa3\x04\n" +
|
||||
"\tnodeLogin\x18\x02 \x01(\v2\r.pb.NodeLoginR\tnodeLogin\"r\n" +
|
||||
"$CheckHTTPDNSNodeLatestVersionRequest\x12\x0e\n" +
|
||||
"\x02os\x18\x01 \x01(\tR\x02os\x12\x12\n" +
|
||||
"\x04arch\x18\x02 \x01(\tR\x04arch\x12&\n" +
|
||||
"\x0ecurrentVersion\x18\x03 \x01(\tR\x0ecurrentVersion\"m\n" +
|
||||
"%CheckHTTPDNSNodeLatestVersionResponse\x12$\n" +
|
||||
"\rhasNewVersion\x18\x01 \x01(\bR\rhasNewVersion\x12\x1e\n" +
|
||||
"\n" +
|
||||
"newVersion\x18\x02 \x01(\tR\n" +
|
||||
"newVersion\"r\n" +
|
||||
"*DownloadHTTPDNSNodeInstallationFileRequest\x12\x0e\n" +
|
||||
"\x02os\x18\x01 \x01(\tR\x02os\x12\x12\n" +
|
||||
"\x04arch\x18\x02 \x01(\tR\x04arch\x12 \n" +
|
||||
"\vchunkOffset\x18\x03 \x01(\x03R\vchunkOffset\"\xab\x01\n" +
|
||||
"+DownloadHTTPDNSNodeInstallationFileResponse\x12\x1c\n" +
|
||||
"\tchunkData\x18\x01 \x01(\fR\tchunkData\x12\x10\n" +
|
||||
"\x03sum\x18\x02 \x01(\tR\x03sum\x12\x16\n" +
|
||||
"\x06offset\x18\x03 \x01(\x03R\x06offset\x12\x18\n" +
|
||||
"\aversion\x18\x04 \x01(\tR\aversion\x12\x1a\n" +
|
||||
"\bfilename\x18\x05 \x01(\tR\bfilename2\xa2\x06\n" +
|
||||
"\x12HTTPDNSNodeService\x12P\n" +
|
||||
"\x11createHTTPDNSNode\x12\x1c.pb.CreateHTTPDNSNodeRequest\x1a\x1d.pb.CreateHTTPDNSNodeResponse\x12A\n" +
|
||||
"\x11updateHTTPDNSNode\x12\x1c.pb.UpdateHTTPDNSNodeRequest\x1a\x0e.pb.RPCSuccess\x12A\n" +
|
||||
@@ -608,7 +877,9 @@ const file_service_httpdns_node_proto_rawDesc = "" +
|
||||
"\x0ffindHTTPDNSNode\x12\x1a.pb.FindHTTPDNSNodeRequest\x1a\x1b.pb.FindHTTPDNSNodeResponse\x12M\n" +
|
||||
"\x10listHTTPDNSNodes\x12\x1b.pb.ListHTTPDNSNodesRequest\x1a\x1c.pb.ListHTTPDNSNodesResponse\x12M\n" +
|
||||
"\x17updateHTTPDNSNodeStatus\x12\".pb.UpdateHTTPDNSNodeStatusRequest\x1a\x0e.pb.RPCSuccess\x12K\n" +
|
||||
"\x16updateHTTPDNSNodeLogin\x12!.pb.UpdateHTTPDNSNodeLoginRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
||||
"\x16updateHTTPDNSNodeLogin\x12!.pb.UpdateHTTPDNSNodeLoginRequest\x1a\x0e.pb.RPCSuccess\x12t\n" +
|
||||
"\x1dcheckHTTPDNSNodeLatestVersion\x12(.pb.CheckHTTPDNSNodeLatestVersionRequest\x1a).pb.CheckHTTPDNSNodeLatestVersionResponse\x12\x86\x01\n" +
|
||||
"#downloadHTTPDNSNodeInstallationFile\x12..pb.DownloadHTTPDNSNodeInstallationFileRequest\x1a/.pb.DownloadHTTPDNSNodeInstallationFileResponseB\x06Z\x04./pbb\x06proto3"
|
||||
|
||||
var (
|
||||
file_service_httpdns_node_proto_rawDescOnce sync.Once
|
||||
@@ -622,26 +893,30 @@ func file_service_httpdns_node_proto_rawDescGZIP() []byte {
|
||||
return file_service_httpdns_node_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_httpdns_node_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_service_httpdns_node_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
||||
var file_service_httpdns_node_proto_goTypes = []any{
|
||||
(*CreateHTTPDNSNodeRequest)(nil), // 0: pb.CreateHTTPDNSNodeRequest
|
||||
(*CreateHTTPDNSNodeResponse)(nil), // 1: pb.CreateHTTPDNSNodeResponse
|
||||
(*UpdateHTTPDNSNodeRequest)(nil), // 2: pb.UpdateHTTPDNSNodeRequest
|
||||
(*DeleteHTTPDNSNodeRequest)(nil), // 3: pb.DeleteHTTPDNSNodeRequest
|
||||
(*FindHTTPDNSNodeRequest)(nil), // 4: pb.FindHTTPDNSNodeRequest
|
||||
(*FindHTTPDNSNodeResponse)(nil), // 5: pb.FindHTTPDNSNodeResponse
|
||||
(*ListHTTPDNSNodesRequest)(nil), // 6: pb.ListHTTPDNSNodesRequest
|
||||
(*ListHTTPDNSNodesResponse)(nil), // 7: pb.ListHTTPDNSNodesResponse
|
||||
(*UpdateHTTPDNSNodeStatusRequest)(nil), // 8: pb.UpdateHTTPDNSNodeStatusRequest
|
||||
(*UpdateHTTPDNSNodeLoginRequest)(nil), // 9: pb.UpdateHTTPDNSNodeLoginRequest
|
||||
(*HTTPDNSNode)(nil), // 10: pb.HTTPDNSNode
|
||||
(*NodeLogin)(nil), // 11: pb.NodeLogin
|
||||
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
|
||||
(*CreateHTTPDNSNodeRequest)(nil), // 0: pb.CreateHTTPDNSNodeRequest
|
||||
(*CreateHTTPDNSNodeResponse)(nil), // 1: pb.CreateHTTPDNSNodeResponse
|
||||
(*UpdateHTTPDNSNodeRequest)(nil), // 2: pb.UpdateHTTPDNSNodeRequest
|
||||
(*DeleteHTTPDNSNodeRequest)(nil), // 3: pb.DeleteHTTPDNSNodeRequest
|
||||
(*FindHTTPDNSNodeRequest)(nil), // 4: pb.FindHTTPDNSNodeRequest
|
||||
(*FindHTTPDNSNodeResponse)(nil), // 5: pb.FindHTTPDNSNodeResponse
|
||||
(*ListHTTPDNSNodesRequest)(nil), // 6: pb.ListHTTPDNSNodesRequest
|
||||
(*ListHTTPDNSNodesResponse)(nil), // 7: pb.ListHTTPDNSNodesResponse
|
||||
(*UpdateHTTPDNSNodeStatusRequest)(nil), // 8: pb.UpdateHTTPDNSNodeStatusRequest
|
||||
(*UpdateHTTPDNSNodeLoginRequest)(nil), // 9: pb.UpdateHTTPDNSNodeLoginRequest
|
||||
(*CheckHTTPDNSNodeLatestVersionRequest)(nil), // 10: pb.CheckHTTPDNSNodeLatestVersionRequest
|
||||
(*CheckHTTPDNSNodeLatestVersionResponse)(nil), // 11: pb.CheckHTTPDNSNodeLatestVersionResponse
|
||||
(*DownloadHTTPDNSNodeInstallationFileRequest)(nil), // 12: pb.DownloadHTTPDNSNodeInstallationFileRequest
|
||||
(*DownloadHTTPDNSNodeInstallationFileResponse)(nil), // 13: pb.DownloadHTTPDNSNodeInstallationFileResponse
|
||||
(*HTTPDNSNode)(nil), // 14: pb.HTTPDNSNode
|
||||
(*NodeLogin)(nil), // 15: pb.NodeLogin
|
||||
(*RPCSuccess)(nil), // 16: pb.RPCSuccess
|
||||
}
|
||||
var file_service_httpdns_node_proto_depIdxs = []int32{
|
||||
10, // 0: pb.FindHTTPDNSNodeResponse.node:type_name -> pb.HTTPDNSNode
|
||||
10, // 1: pb.ListHTTPDNSNodesResponse.nodes:type_name -> pb.HTTPDNSNode
|
||||
11, // 2: pb.UpdateHTTPDNSNodeLoginRequest.nodeLogin:type_name -> pb.NodeLogin
|
||||
14, // 0: pb.FindHTTPDNSNodeResponse.node:type_name -> pb.HTTPDNSNode
|
||||
14, // 1: pb.ListHTTPDNSNodesResponse.nodes:type_name -> pb.HTTPDNSNode
|
||||
15, // 2: pb.UpdateHTTPDNSNodeLoginRequest.nodeLogin:type_name -> pb.NodeLogin
|
||||
0, // 3: pb.HTTPDNSNodeService.createHTTPDNSNode:input_type -> pb.CreateHTTPDNSNodeRequest
|
||||
2, // 4: pb.HTTPDNSNodeService.updateHTTPDNSNode:input_type -> pb.UpdateHTTPDNSNodeRequest
|
||||
3, // 5: pb.HTTPDNSNodeService.deleteHTTPDNSNode:input_type -> pb.DeleteHTTPDNSNodeRequest
|
||||
@@ -649,15 +924,19 @@ var file_service_httpdns_node_proto_depIdxs = []int32{
|
||||
6, // 7: pb.HTTPDNSNodeService.listHTTPDNSNodes:input_type -> pb.ListHTTPDNSNodesRequest
|
||||
8, // 8: pb.HTTPDNSNodeService.updateHTTPDNSNodeStatus:input_type -> pb.UpdateHTTPDNSNodeStatusRequest
|
||||
9, // 9: pb.HTTPDNSNodeService.updateHTTPDNSNodeLogin:input_type -> pb.UpdateHTTPDNSNodeLoginRequest
|
||||
1, // 10: pb.HTTPDNSNodeService.createHTTPDNSNode:output_type -> pb.CreateHTTPDNSNodeResponse
|
||||
12, // 11: pb.HTTPDNSNodeService.updateHTTPDNSNode:output_type -> pb.RPCSuccess
|
||||
12, // 12: pb.HTTPDNSNodeService.deleteHTTPDNSNode:output_type -> pb.RPCSuccess
|
||||
5, // 13: pb.HTTPDNSNodeService.findHTTPDNSNode:output_type -> pb.FindHTTPDNSNodeResponse
|
||||
7, // 14: pb.HTTPDNSNodeService.listHTTPDNSNodes:output_type -> pb.ListHTTPDNSNodesResponse
|
||||
12, // 15: pb.HTTPDNSNodeService.updateHTTPDNSNodeStatus:output_type -> pb.RPCSuccess
|
||||
12, // 16: pb.HTTPDNSNodeService.updateHTTPDNSNodeLogin:output_type -> pb.RPCSuccess
|
||||
10, // [10:17] is the sub-list for method output_type
|
||||
3, // [3:10] is the sub-list for method input_type
|
||||
10, // 10: pb.HTTPDNSNodeService.checkHTTPDNSNodeLatestVersion:input_type -> pb.CheckHTTPDNSNodeLatestVersionRequest
|
||||
12, // 11: pb.HTTPDNSNodeService.downloadHTTPDNSNodeInstallationFile:input_type -> pb.DownloadHTTPDNSNodeInstallationFileRequest
|
||||
1, // 12: pb.HTTPDNSNodeService.createHTTPDNSNode:output_type -> pb.CreateHTTPDNSNodeResponse
|
||||
16, // 13: pb.HTTPDNSNodeService.updateHTTPDNSNode:output_type -> pb.RPCSuccess
|
||||
16, // 14: pb.HTTPDNSNodeService.deleteHTTPDNSNode:output_type -> pb.RPCSuccess
|
||||
5, // 15: pb.HTTPDNSNodeService.findHTTPDNSNode:output_type -> pb.FindHTTPDNSNodeResponse
|
||||
7, // 16: pb.HTTPDNSNodeService.listHTTPDNSNodes:output_type -> pb.ListHTTPDNSNodesResponse
|
||||
16, // 17: pb.HTTPDNSNodeService.updateHTTPDNSNodeStatus:output_type -> pb.RPCSuccess
|
||||
16, // 18: pb.HTTPDNSNodeService.updateHTTPDNSNodeLogin:output_type -> pb.RPCSuccess
|
||||
11, // 19: pb.HTTPDNSNodeService.checkHTTPDNSNodeLatestVersion:output_type -> pb.CheckHTTPDNSNodeLatestVersionResponse
|
||||
13, // 20: pb.HTTPDNSNodeService.downloadHTTPDNSNodeInstallationFile:output_type -> pb.DownloadHTTPDNSNodeInstallationFileResponse
|
||||
12, // [12:21] is the sub-list for method output_type
|
||||
3, // [3:12] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
@@ -677,7 +956,7 @@ func file_service_httpdns_node_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_httpdns_node_proto_rawDesc), len(file_service_httpdns_node_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumMessages: 14,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -19,13 +19,15 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
HTTPDNSNodeService_CreateHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/createHTTPDNSNode"
|
||||
HTTPDNSNodeService_UpdateHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/updateHTTPDNSNode"
|
||||
HTTPDNSNodeService_DeleteHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/deleteHTTPDNSNode"
|
||||
HTTPDNSNodeService_FindHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/findHTTPDNSNode"
|
||||
HTTPDNSNodeService_ListHTTPDNSNodes_FullMethodName = "/pb.HTTPDNSNodeService/listHTTPDNSNodes"
|
||||
HTTPDNSNodeService_UpdateHTTPDNSNodeStatus_FullMethodName = "/pb.HTTPDNSNodeService/updateHTTPDNSNodeStatus"
|
||||
HTTPDNSNodeService_UpdateHTTPDNSNodeLogin_FullMethodName = "/pb.HTTPDNSNodeService/updateHTTPDNSNodeLogin"
|
||||
HTTPDNSNodeService_CreateHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/createHTTPDNSNode"
|
||||
HTTPDNSNodeService_UpdateHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/updateHTTPDNSNode"
|
||||
HTTPDNSNodeService_DeleteHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/deleteHTTPDNSNode"
|
||||
HTTPDNSNodeService_FindHTTPDNSNode_FullMethodName = "/pb.HTTPDNSNodeService/findHTTPDNSNode"
|
||||
HTTPDNSNodeService_ListHTTPDNSNodes_FullMethodName = "/pb.HTTPDNSNodeService/listHTTPDNSNodes"
|
||||
HTTPDNSNodeService_UpdateHTTPDNSNodeStatus_FullMethodName = "/pb.HTTPDNSNodeService/updateHTTPDNSNodeStatus"
|
||||
HTTPDNSNodeService_UpdateHTTPDNSNodeLogin_FullMethodName = "/pb.HTTPDNSNodeService/updateHTTPDNSNodeLogin"
|
||||
HTTPDNSNodeService_CheckHTTPDNSNodeLatestVersion_FullMethodName = "/pb.HTTPDNSNodeService/checkHTTPDNSNodeLatestVersion"
|
||||
HTTPDNSNodeService_DownloadHTTPDNSNodeInstallationFile_FullMethodName = "/pb.HTTPDNSNodeService/downloadHTTPDNSNodeInstallationFile"
|
||||
)
|
||||
|
||||
// HTTPDNSNodeServiceClient is the client API for HTTPDNSNodeService service.
|
||||
@@ -40,6 +42,10 @@ type HTTPDNSNodeServiceClient interface {
|
||||
UpdateHTTPDNSNodeStatus(ctx context.Context, in *UpdateHTTPDNSNodeStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 修改HTTPDNS节点登录信息
|
||||
UpdateHTTPDNSNodeLogin(ctx context.Context, in *UpdateHTTPDNSNodeLoginRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 检查HTTPDNS节点新版本
|
||||
CheckHTTPDNSNodeLatestVersion(ctx context.Context, in *CheckHTTPDNSNodeLatestVersionRequest, opts ...grpc.CallOption) (*CheckHTTPDNSNodeLatestVersionResponse, error)
|
||||
// 下载最新HTTPDNS节点安装文件
|
||||
DownloadHTTPDNSNodeInstallationFile(ctx context.Context, in *DownloadHTTPDNSNodeInstallationFileRequest, opts ...grpc.CallOption) (*DownloadHTTPDNSNodeInstallationFileResponse, error)
|
||||
}
|
||||
|
||||
type hTTPDNSNodeServiceClient struct {
|
||||
@@ -120,6 +126,26 @@ func (c *hTTPDNSNodeServiceClient) UpdateHTTPDNSNodeLogin(ctx context.Context, i
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPDNSNodeServiceClient) CheckHTTPDNSNodeLatestVersion(ctx context.Context, in *CheckHTTPDNSNodeLatestVersionRequest, opts ...grpc.CallOption) (*CheckHTTPDNSNodeLatestVersionResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CheckHTTPDNSNodeLatestVersionResponse)
|
||||
err := c.cc.Invoke(ctx, HTTPDNSNodeService_CheckHTTPDNSNodeLatestVersion_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPDNSNodeServiceClient) DownloadHTTPDNSNodeInstallationFile(ctx context.Context, in *DownloadHTTPDNSNodeInstallationFileRequest, opts ...grpc.CallOption) (*DownloadHTTPDNSNodeInstallationFileResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(DownloadHTTPDNSNodeInstallationFileResponse)
|
||||
err := c.cc.Invoke(ctx, HTTPDNSNodeService_DownloadHTTPDNSNodeInstallationFile_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// HTTPDNSNodeServiceServer is the server API for HTTPDNSNodeService service.
|
||||
// All implementations must embed UnimplementedHTTPDNSNodeServiceServer
|
||||
// for forward compatibility.
|
||||
@@ -132,6 +158,10 @@ type HTTPDNSNodeServiceServer interface {
|
||||
UpdateHTTPDNSNodeStatus(context.Context, *UpdateHTTPDNSNodeStatusRequest) (*RPCSuccess, error)
|
||||
// 修改HTTPDNS节点登录信息
|
||||
UpdateHTTPDNSNodeLogin(context.Context, *UpdateHTTPDNSNodeLoginRequest) (*RPCSuccess, error)
|
||||
// 检查HTTPDNS节点新版本
|
||||
CheckHTTPDNSNodeLatestVersion(context.Context, *CheckHTTPDNSNodeLatestVersionRequest) (*CheckHTTPDNSNodeLatestVersionResponse, error)
|
||||
// 下载最新HTTPDNS节点安装文件
|
||||
DownloadHTTPDNSNodeInstallationFile(context.Context, *DownloadHTTPDNSNodeInstallationFileRequest) (*DownloadHTTPDNSNodeInstallationFileResponse, error)
|
||||
mustEmbedUnimplementedHTTPDNSNodeServiceServer()
|
||||
}
|
||||
|
||||
@@ -163,6 +193,12 @@ func (UnimplementedHTTPDNSNodeServiceServer) UpdateHTTPDNSNodeStatus(context.Con
|
||||
func (UnimplementedHTTPDNSNodeServiceServer) UpdateHTTPDNSNodeLogin(context.Context, *UpdateHTTPDNSNodeLoginRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateHTTPDNSNodeLogin not implemented")
|
||||
}
|
||||
func (UnimplementedHTTPDNSNodeServiceServer) CheckHTTPDNSNodeLatestVersion(context.Context, *CheckHTTPDNSNodeLatestVersionRequest) (*CheckHTTPDNSNodeLatestVersionResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CheckHTTPDNSNodeLatestVersion not implemented")
|
||||
}
|
||||
func (UnimplementedHTTPDNSNodeServiceServer) DownloadHTTPDNSNodeInstallationFile(context.Context, *DownloadHTTPDNSNodeInstallationFileRequest) (*DownloadHTTPDNSNodeInstallationFileResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DownloadHTTPDNSNodeInstallationFile not implemented")
|
||||
}
|
||||
func (UnimplementedHTTPDNSNodeServiceServer) mustEmbedUnimplementedHTTPDNSNodeServiceServer() {}
|
||||
func (UnimplementedHTTPDNSNodeServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -310,6 +346,42 @@ func _HTTPDNSNodeService_UpdateHTTPDNSNodeLogin_Handler(srv interface{}, ctx con
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HTTPDNSNodeService_CheckHTTPDNSNodeLatestVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CheckHTTPDNSNodeLatestVersionRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HTTPDNSNodeServiceServer).CheckHTTPDNSNodeLatestVersion(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HTTPDNSNodeService_CheckHTTPDNSNodeLatestVersion_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HTTPDNSNodeServiceServer).CheckHTTPDNSNodeLatestVersion(ctx, req.(*CheckHTTPDNSNodeLatestVersionRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HTTPDNSNodeService_DownloadHTTPDNSNodeInstallationFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DownloadHTTPDNSNodeInstallationFileRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HTTPDNSNodeServiceServer).DownloadHTTPDNSNodeInstallationFile(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HTTPDNSNodeService_DownloadHTTPDNSNodeInstallationFile_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HTTPDNSNodeServiceServer).DownloadHTTPDNSNodeInstallationFile(ctx, req.(*DownloadHTTPDNSNodeInstallationFileRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// HTTPDNSNodeService_ServiceDesc is the grpc.ServiceDesc for HTTPDNSNodeService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -345,6 +417,14 @@ var HTTPDNSNodeService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "updateHTTPDNSNodeLogin",
|
||||
Handler: _HTTPDNSNodeService_UpdateHTTPDNSNodeLogin_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "checkHTTPDNSNodeLatestVersion",
|
||||
Handler: _HTTPDNSNodeService_CheckHTTPDNSNodeLatestVersion_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "downloadHTTPDNSNodeInstallationFile",
|
||||
Handler: _HTTPDNSNodeService_DownloadHTTPDNSNodeInstallationFile_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_httpdns_node.proto",
|
||||
|
||||
@@ -15,4 +15,6 @@ message HTTPDNSCluster {
|
||||
bytes tlsPolicyJSON = 9;
|
||||
int64 createdAt = 10;
|
||||
int64 updatedAt = 11;
|
||||
bool autoRemoteStart = 12;
|
||||
bool accessLogIsOn = 13;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ message CreateHTTPDNSClusterRequest {
|
||||
bytes tlsPolicyJSON = 6;
|
||||
bool isOn = 7;
|
||||
bool isDefault = 8;
|
||||
bool autoRemoteStart = 9;
|
||||
bool accessLogIsOn = 10;
|
||||
}
|
||||
|
||||
message CreateHTTPDNSClusterResponse {
|
||||
@@ -43,6 +45,8 @@ message UpdateHTTPDNSClusterRequest {
|
||||
bytes tlsPolicyJSON = 7;
|
||||
bool isOn = 8;
|
||||
bool isDefault = 9;
|
||||
bool autoRemoteStart = 10;
|
||||
bool accessLogIsOn = 11;
|
||||
}
|
||||
|
||||
message DeleteHTTPDNSClusterRequest {
|
||||
|
||||
@@ -16,6 +16,12 @@ service HTTPDNSNodeService {
|
||||
rpc updateHTTPDNSNodeStatus (UpdateHTTPDNSNodeStatusRequest) returns (RPCSuccess);
|
||||
// 修改HTTPDNS节点登录信息
|
||||
rpc updateHTTPDNSNodeLogin (UpdateHTTPDNSNodeLoginRequest) returns (RPCSuccess);
|
||||
|
||||
// 检查HTTPDNS节点新版本
|
||||
rpc checkHTTPDNSNodeLatestVersion (CheckHTTPDNSNodeLatestVersionRequest) returns (CheckHTTPDNSNodeLatestVersionResponse);
|
||||
|
||||
// 下载最新HTTPDNS节点安装文件
|
||||
rpc downloadHTTPDNSNodeInstallationFile (DownloadHTTPDNSNodeInstallationFileRequest) returns (DownloadHTTPDNSNodeInstallationFileResponse);
|
||||
}
|
||||
|
||||
message CreateHTTPDNSNodeRequest {
|
||||
@@ -70,3 +76,30 @@ message UpdateHTTPDNSNodeLoginRequest {
|
||||
int64 nodeId = 1;
|
||||
NodeLogin nodeLogin = 2;
|
||||
}
|
||||
|
||||
// 检查HTTPDNS节点新版本
|
||||
message CheckHTTPDNSNodeLatestVersionRequest {
|
||||
string os = 1;
|
||||
string arch = 2;
|
||||
string currentVersion = 3;
|
||||
}
|
||||
|
||||
message CheckHTTPDNSNodeLatestVersionResponse {
|
||||
bool hasNewVersion = 1;
|
||||
string newVersion = 2;
|
||||
}
|
||||
|
||||
// 下载最新HTTPDNS节点安装文件
|
||||
message DownloadHTTPDNSNodeInstallationFileRequest {
|
||||
string os = 1;
|
||||
string arch = 2;
|
||||
int64 chunkOffset = 3;
|
||||
}
|
||||
|
||||
message DownloadHTTPDNSNodeInstallationFileResponse {
|
||||
bytes chunkData = 1;
|
||||
string sum = 2;
|
||||
int64 offset = 3;
|
||||
string version = 4;
|
||||
string filename = 5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user