mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-12 03:10:24 +08:00
增加DNS域名管理
This commit is contained in:
@@ -395,53 +395,6 @@ func (*CountAllEnabledDBNodesRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
type CountAllEnabledDBNodesResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CountAllEnabledDBNodesResponse) Reset() {
|
||||
*x = CountAllEnabledDBNodesResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_db_node_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CountAllEnabledDBNodesResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CountAllEnabledDBNodesResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CountAllEnabledDBNodesResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_db_node_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 CountAllEnabledDBNodesResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CountAllEnabledDBNodesResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *CountAllEnabledDBNodesResponse) GetCount() int64 {
|
||||
if x != nil {
|
||||
return x.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 列出单页的数据库节点
|
||||
type ListEnabledDBNodesRequest struct {
|
||||
state protoimpl.MessageState
|
||||
@@ -455,7 +408,7 @@ type ListEnabledDBNodesRequest struct {
|
||||
func (x *ListEnabledDBNodesRequest) Reset() {
|
||||
*x = ListEnabledDBNodesRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_db_node_proto_msgTypes[6]
|
||||
mi := &file_service_db_node_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -468,7 +421,7 @@ func (x *ListEnabledDBNodesRequest) String() string {
|
||||
func (*ListEnabledDBNodesRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListEnabledDBNodesRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_db_node_proto_msgTypes[6]
|
||||
mi := &file_service_db_node_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -481,7 +434,7 @@ func (x *ListEnabledDBNodesRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListEnabledDBNodesRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListEnabledDBNodesRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{6}
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ListEnabledDBNodesRequest) GetOffset() int64 {
|
||||
@@ -509,7 +462,7 @@ type ListEnabledDBNodesResponse struct {
|
||||
func (x *ListEnabledDBNodesResponse) Reset() {
|
||||
*x = ListEnabledDBNodesResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_db_node_proto_msgTypes[7]
|
||||
mi := &file_service_db_node_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -522,7 +475,7 @@ func (x *ListEnabledDBNodesResponse) String() string {
|
||||
func (*ListEnabledDBNodesResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListEnabledDBNodesResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_db_node_proto_msgTypes[7]
|
||||
mi := &file_service_db_node_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -535,7 +488,7 @@ func (x *ListEnabledDBNodesResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListEnabledDBNodesResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListEnabledDBNodesResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{7}
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *ListEnabledDBNodesResponse) GetNodes() []*DBNode {
|
||||
@@ -557,7 +510,7 @@ type FindEnabledDBNodeRequest struct {
|
||||
func (x *FindEnabledDBNodeRequest) Reset() {
|
||||
*x = FindEnabledDBNodeRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_db_node_proto_msgTypes[8]
|
||||
mi := &file_service_db_node_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -570,7 +523,7 @@ func (x *FindEnabledDBNodeRequest) String() string {
|
||||
func (*FindEnabledDBNodeRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindEnabledDBNodeRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_db_node_proto_msgTypes[8]
|
||||
mi := &file_service_db_node_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -583,7 +536,7 @@ func (x *FindEnabledDBNodeRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FindEnabledDBNodeRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindEnabledDBNodeRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{8}
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *FindEnabledDBNodeRequest) GetNodeId() int64 {
|
||||
@@ -604,7 +557,7 @@ type FindEnabledDBNodeResponse struct {
|
||||
func (x *FindEnabledDBNodeResponse) Reset() {
|
||||
*x = FindEnabledDBNodeResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_db_node_proto_msgTypes[9]
|
||||
mi := &file_service_db_node_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -617,7 +570,7 @@ func (x *FindEnabledDBNodeResponse) String() string {
|
||||
func (*FindEnabledDBNodeResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindEnabledDBNodeResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_db_node_proto_msgTypes[9]
|
||||
mi := &file_service_db_node_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -630,7 +583,7 @@ func (x *FindEnabledDBNodeResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use FindEnabledDBNodeResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindEnabledDBNodeResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{9}
|
||||
return file_service_db_node_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *FindEnabledDBNodeResponse) GetNode() *DBNode {
|
||||
@@ -687,57 +640,53 @@ var file_service_db_node_proto_rawDesc = []byte{
|
||||
0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x1f, 0x0a, 0x1d, 0x43,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42,
|
||||
0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x36, 0x0a, 0x1e,
|
||||
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44,
|
||||
0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x22, 0x47, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62,
|
||||
0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x47, 0x0a, 0x19,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64,
|
||||
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66,
|
||||
0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,
|
||||
0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3e, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05,
|
||||
0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x32, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x19, 0x46, 0x69, 0x6e,
|
||||
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65,
|
||||
0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x32, 0xca, 0x03, 0x0a, 0x0d, 0x44, 0x42, 0x4e, 0x6f, 0x64,
|
||||
0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72,
|
||||
0x65, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e,
|
||||
0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x75,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x55, 0x70, 0x64,
|
||||
0x61, 0x74, 0x65, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x65,
|
||||
0x6c, 0x65, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x44, 0x65, 0x6c, 0x65,
|
||||
0x74, 0x65, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x16, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f,
|
||||
0x64, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c,
|
||||
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12,
|
||||
0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64,
|
||||
0x65, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3e, 0x0a,
|
||||
0x1a, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f,
|
||||
0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x6e,
|
||||
0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x32, 0x0a,
|
||||
0x18, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f,
|
||||
0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64,
|
||||
0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49,
|
||||
0x64, 0x22, 0x3b, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||||
0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e,
|
||||
0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x32, 0xd8,
|
||||
0x03, 0x0a, 0x0d, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
||||
0x12, 0x41, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65,
|
||||
0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f,
|
||||
0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x42, 0x4e,
|
||||
0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,
|
||||
0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x52, 0x50, 0x43, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x63, 0x63, 0x65,
|
||||
0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x42, 0x4e, 0x6f,
|
||||
0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x42,
|
||||
0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x52, 0x50, 0x43, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
|
||||
0x73, 0x12, 0x5f, 0x0a, 0x16, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||||
0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x45,
|
||||
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e,
|
||||
0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64,
|
||||
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
|
||||
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||||
0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x44, 0x42, 0x4e, 0x6f, 0x64, 0x65, 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 (
|
||||
@@ -752,37 +701,37 @@ func file_service_db_node_proto_rawDescGZIP() []byte {
|
||||
return file_service_db_node_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_db_node_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_service_db_node_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_service_db_node_proto_goTypes = []interface{}{
|
||||
(*CreateDBNodeRequest)(nil), // 0: pb.CreateDBNodeRequest
|
||||
(*CreateDBNodeResponse)(nil), // 1: pb.CreateDBNodeResponse
|
||||
(*UpdateDBNodeRequest)(nil), // 2: pb.UpdateDBNodeRequest
|
||||
(*DeleteDBNodeRequest)(nil), // 3: pb.DeleteDBNodeRequest
|
||||
(*CountAllEnabledDBNodesRequest)(nil), // 4: pb.CountAllEnabledDBNodesRequest
|
||||
(*CountAllEnabledDBNodesResponse)(nil), // 5: pb.CountAllEnabledDBNodesResponse
|
||||
(*ListEnabledDBNodesRequest)(nil), // 6: pb.ListEnabledDBNodesRequest
|
||||
(*ListEnabledDBNodesResponse)(nil), // 7: pb.ListEnabledDBNodesResponse
|
||||
(*FindEnabledDBNodeRequest)(nil), // 8: pb.FindEnabledDBNodeRequest
|
||||
(*FindEnabledDBNodeResponse)(nil), // 9: pb.FindEnabledDBNodeResponse
|
||||
(*DBNode)(nil), // 10: pb.DBNode
|
||||
(*RPCUpdateSuccess)(nil), // 11: pb.RPCUpdateSuccess
|
||||
(*RPCDeleteSuccess)(nil), // 12: pb.RPCDeleteSuccess
|
||||
(*CreateDBNodeRequest)(nil), // 0: pb.CreateDBNodeRequest
|
||||
(*CreateDBNodeResponse)(nil), // 1: pb.CreateDBNodeResponse
|
||||
(*UpdateDBNodeRequest)(nil), // 2: pb.UpdateDBNodeRequest
|
||||
(*DeleteDBNodeRequest)(nil), // 3: pb.DeleteDBNodeRequest
|
||||
(*CountAllEnabledDBNodesRequest)(nil), // 4: pb.CountAllEnabledDBNodesRequest
|
||||
(*ListEnabledDBNodesRequest)(nil), // 5: pb.ListEnabledDBNodesRequest
|
||||
(*ListEnabledDBNodesResponse)(nil), // 6: pb.ListEnabledDBNodesResponse
|
||||
(*FindEnabledDBNodeRequest)(nil), // 7: pb.FindEnabledDBNodeRequest
|
||||
(*FindEnabledDBNodeResponse)(nil), // 8: pb.FindEnabledDBNodeResponse
|
||||
(*DBNode)(nil), // 9: pb.DBNode
|
||||
(*RPCUpdateSuccess)(nil), // 10: pb.RPCUpdateSuccess
|
||||
(*RPCDeleteSuccess)(nil), // 11: pb.RPCDeleteSuccess
|
||||
(*RPCCountResponse)(nil), // 12: pb.RPCCountResponse
|
||||
}
|
||||
var file_service_db_node_proto_depIdxs = []int32{
|
||||
10, // 0: pb.ListEnabledDBNodesResponse.nodes:type_name -> pb.DBNode
|
||||
10, // 1: pb.FindEnabledDBNodeResponse.node:type_name -> pb.DBNode
|
||||
9, // 0: pb.ListEnabledDBNodesResponse.nodes:type_name -> pb.DBNode
|
||||
9, // 1: pb.FindEnabledDBNodeResponse.node:type_name -> pb.DBNode
|
||||
0, // 2: pb.DBNodeService.createDBNode:input_type -> pb.CreateDBNodeRequest
|
||||
2, // 3: pb.DBNodeService.updateDBNode:input_type -> pb.UpdateDBNodeRequest
|
||||
3, // 4: pb.DBNodeService.deleteDBNode:input_type -> pb.DeleteDBNodeRequest
|
||||
4, // 5: pb.DBNodeService.countAllEnabledDBNodes:input_type -> pb.CountAllEnabledDBNodesRequest
|
||||
6, // 6: pb.DBNodeService.listEnabledDBNodes:input_type -> pb.ListEnabledDBNodesRequest
|
||||
8, // 7: pb.DBNodeService.findEnabledDBNode:input_type -> pb.FindEnabledDBNodeRequest
|
||||
5, // 6: pb.DBNodeService.listEnabledDBNodes:input_type -> pb.ListEnabledDBNodesRequest
|
||||
7, // 7: pb.DBNodeService.findEnabledDBNode:input_type -> pb.FindEnabledDBNodeRequest
|
||||
1, // 8: pb.DBNodeService.createDBNode:output_type -> pb.CreateDBNodeResponse
|
||||
11, // 9: pb.DBNodeService.updateDBNode:output_type -> pb.RPCUpdateSuccess
|
||||
12, // 10: pb.DBNodeService.deleteDBNode:output_type -> pb.RPCDeleteSuccess
|
||||
5, // 11: pb.DBNodeService.countAllEnabledDBNodes:output_type -> pb.CountAllEnabledDBNodesResponse
|
||||
7, // 12: pb.DBNodeService.listEnabledDBNodes:output_type -> pb.ListEnabledDBNodesResponse
|
||||
9, // 13: pb.DBNodeService.findEnabledDBNode:output_type -> pb.FindEnabledDBNodeResponse
|
||||
10, // 9: pb.DBNodeService.updateDBNode:output_type -> pb.RPCUpdateSuccess
|
||||
11, // 10: pb.DBNodeService.deleteDBNode:output_type -> pb.RPCDeleteSuccess
|
||||
12, // 11: pb.DBNodeService.countAllEnabledDBNodes:output_type -> pb.RPCCountResponse
|
||||
6, // 12: pb.DBNodeService.listEnabledDBNodes:output_type -> pb.ListEnabledDBNodesResponse
|
||||
8, // 13: pb.DBNodeService.findEnabledDBNode:output_type -> pb.FindEnabledDBNodeResponse
|
||||
8, // [8:14] is the sub-list for method output_type
|
||||
2, // [2:8] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
@@ -859,18 +808,6 @@ func file_service_db_node_proto_init() {
|
||||
}
|
||||
}
|
||||
file_service_db_node_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CountAllEnabledDBNodesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_db_node_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ListEnabledDBNodesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -882,7 +819,7 @@ func file_service_db_node_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_db_node_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_service_db_node_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ListEnabledDBNodesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -894,7 +831,7 @@ func file_service_db_node_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_db_node_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_service_db_node_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindEnabledDBNodeRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -906,7 +843,7 @@ func file_service_db_node_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_db_node_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_service_db_node_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindEnabledDBNodeResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -925,7 +862,7 @@ func file_service_db_node_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_service_db_node_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
@@ -958,7 +895,7 @@ type DBNodeServiceClient interface {
|
||||
// 删除节点
|
||||
DeleteDBNode(ctx context.Context, in *DeleteDBNodeRequest, opts ...grpc.CallOption) (*RPCDeleteSuccess, error)
|
||||
// 计算可用的数据库节点数量
|
||||
CountAllEnabledDBNodes(ctx context.Context, in *CountAllEnabledDBNodesRequest, opts ...grpc.CallOption) (*CountAllEnabledDBNodesResponse, error)
|
||||
CountAllEnabledDBNodes(ctx context.Context, in *CountAllEnabledDBNodesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
// 列出单页的数据库节点
|
||||
ListEnabledDBNodes(ctx context.Context, in *ListEnabledDBNodesRequest, opts ...grpc.CallOption) (*ListEnabledDBNodesResponse, error)
|
||||
// 根据ID查找可用的数据库节点
|
||||
@@ -1000,8 +937,8 @@ func (c *dBNodeServiceClient) DeleteDBNode(ctx context.Context, in *DeleteDBNode
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *dBNodeServiceClient) CountAllEnabledDBNodes(ctx context.Context, in *CountAllEnabledDBNodesRequest, opts ...grpc.CallOption) (*CountAllEnabledDBNodesResponse, error) {
|
||||
out := new(CountAllEnabledDBNodesResponse)
|
||||
func (c *dBNodeServiceClient) CountAllEnabledDBNodes(ctx context.Context, in *CountAllEnabledDBNodesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||||
out := new(RPCCountResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.DBNodeService/countAllEnabledDBNodes", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -1036,7 +973,7 @@ type DBNodeServiceServer interface {
|
||||
// 删除节点
|
||||
DeleteDBNode(context.Context, *DeleteDBNodeRequest) (*RPCDeleteSuccess, error)
|
||||
// 计算可用的数据库节点数量
|
||||
CountAllEnabledDBNodes(context.Context, *CountAllEnabledDBNodesRequest) (*CountAllEnabledDBNodesResponse, error)
|
||||
CountAllEnabledDBNodes(context.Context, *CountAllEnabledDBNodesRequest) (*RPCCountResponse, error)
|
||||
// 列出单页的数据库节点
|
||||
ListEnabledDBNodes(context.Context, *ListEnabledDBNodesRequest) (*ListEnabledDBNodesResponse, error)
|
||||
// 根据ID查找可用的数据库节点
|
||||
@@ -1056,7 +993,7 @@ func (*UnimplementedDBNodeServiceServer) UpdateDBNode(context.Context, *UpdateDB
|
||||
func (*UnimplementedDBNodeServiceServer) DeleteDBNode(context.Context, *DeleteDBNodeRequest) (*RPCDeleteSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteDBNode not implemented")
|
||||
}
|
||||
func (*UnimplementedDBNodeServiceServer) CountAllEnabledDBNodes(context.Context, *CountAllEnabledDBNodesRequest) (*CountAllEnabledDBNodesResponse, error) {
|
||||
func (*UnimplementedDBNodeServiceServer) CountAllEnabledDBNodes(context.Context, *CountAllEnabledDBNodesRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledDBNodes not implemented")
|
||||
}
|
||||
func (*UnimplementedDBNodeServiceServer) ListEnabledDBNodes(context.Context, *ListEnabledDBNodesRequest) (*ListEnabledDBNodesResponse, error) {
|
||||
|
||||
Reference in New Issue
Block a user