简化代码/增加HTTPPage服务

This commit is contained in:
刘祥超
2020-09-17 10:15:55 +08:00
parent 0ad7ac7797
commit 6a93d17e72
28 changed files with 3103 additions and 3994 deletions

View File

@@ -204,44 +204,6 @@ func (x *UpdateNodeIPAddressRequest) GetIp() string {
return ""
}
type UpdateNodeIPAddressResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *UpdateNodeIPAddressResponse) Reset() {
*x = UpdateNodeIPAddressResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNodeIPAddressResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNodeIPAddressResponse) ProtoMessage() {}
func (x *UpdateNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_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 UpdateNodeIPAddressResponse.ProtoReflect.Descriptor instead.
func (*UpdateNodeIPAddressResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{3}
}
// 修改IP地址所属节点
type UpdateNodeIPAddressNodeIdRequest struct {
state protoimpl.MessageState
@@ -255,7 +217,7 @@ type UpdateNodeIPAddressNodeIdRequest struct {
func (x *UpdateNodeIPAddressNodeIdRequest) Reset() {
*x = UpdateNodeIPAddressNodeIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[4]
mi := &file_service_node_ip_address_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -268,7 +230,7 @@ func (x *UpdateNodeIPAddressNodeIdRequest) String() string {
func (*UpdateNodeIPAddressNodeIdRequest) ProtoMessage() {}
func (x *UpdateNodeIPAddressNodeIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[4]
mi := &file_service_node_ip_address_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -281,7 +243,7 @@ func (x *UpdateNodeIPAddressNodeIdRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateNodeIPAddressNodeIdRequest.ProtoReflect.Descriptor instead.
func (*UpdateNodeIPAddressNodeIdRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{4}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{3}
}
func (x *UpdateNodeIPAddressNodeIdRequest) GetAddressId() int64 {
@@ -298,44 +260,6 @@ func (x *UpdateNodeIPAddressNodeIdRequest) GetNodeId() int64 {
return 0
}
type UpdateNodeIPAddressNodeIdResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *UpdateNodeIPAddressNodeIdResponse) Reset() {
*x = UpdateNodeIPAddressNodeIdResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNodeIPAddressNodeIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNodeIPAddressNodeIdResponse) ProtoMessage() {}
func (x *UpdateNodeIPAddressNodeIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_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 UpdateNodeIPAddressNodeIdResponse.ProtoReflect.Descriptor instead.
func (*UpdateNodeIPAddressNodeIdResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{5}
}
// 禁用单个IP地址
type DisableNodeIPAddressRequest struct {
state protoimpl.MessageState
@@ -348,7 +272,7 @@ type DisableNodeIPAddressRequest struct {
func (x *DisableNodeIPAddressRequest) Reset() {
*x = DisableNodeIPAddressRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[6]
mi := &file_service_node_ip_address_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -361,7 +285,7 @@ func (x *DisableNodeIPAddressRequest) String() string {
func (*DisableNodeIPAddressRequest) ProtoMessage() {}
func (x *DisableNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[6]
mi := &file_service_node_ip_address_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -374,7 +298,7 @@ func (x *DisableNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DisableNodeIPAddressRequest.ProtoReflect.Descriptor instead.
func (*DisableNodeIPAddressRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{6}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{4}
}
func (x *DisableNodeIPAddressRequest) GetAddressId() int64 {
@@ -393,7 +317,7 @@ type DisableNodeIPAddressResponse struct {
func (x *DisableNodeIPAddressResponse) Reset() {
*x = DisableNodeIPAddressResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[7]
mi := &file_service_node_ip_address_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -406,7 +330,7 @@ func (x *DisableNodeIPAddressResponse) String() string {
func (*DisableNodeIPAddressResponse) ProtoMessage() {}
func (x *DisableNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[7]
mi := &file_service_node_ip_address_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -419,7 +343,7 @@ func (x *DisableNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DisableNodeIPAddressResponse.ProtoReflect.Descriptor instead.
func (*DisableNodeIPAddressResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{7}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{5}
}
// 禁用节点的所有IP地址
@@ -434,7 +358,7 @@ type DisableAllIPAddressesWithNodeIdRequest struct {
func (x *DisableAllIPAddressesWithNodeIdRequest) Reset() {
*x = DisableAllIPAddressesWithNodeIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[8]
mi := &file_service_node_ip_address_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -447,7 +371,7 @@ func (x *DisableAllIPAddressesWithNodeIdRequest) String() string {
func (*DisableAllIPAddressesWithNodeIdRequest) ProtoMessage() {}
func (x *DisableAllIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[8]
mi := &file_service_node_ip_address_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -460,7 +384,7 @@ func (x *DisableAllIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Mes
// Deprecated: Use DisableAllIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead.
func (*DisableAllIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{8}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{6}
}
func (x *DisableAllIPAddressesWithNodeIdRequest) GetNodeId() int64 {
@@ -479,7 +403,7 @@ type DisableAllIPAddressesWithNodeIdResponse struct {
func (x *DisableAllIPAddressesWithNodeIdResponse) Reset() {
*x = DisableAllIPAddressesWithNodeIdResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[9]
mi := &file_service_node_ip_address_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -492,7 +416,7 @@ func (x *DisableAllIPAddressesWithNodeIdResponse) String() string {
func (*DisableAllIPAddressesWithNodeIdResponse) ProtoMessage() {}
func (x *DisableAllIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[9]
mi := &file_service_node_ip_address_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -505,7 +429,7 @@ func (x *DisableAllIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Me
// Deprecated: Use DisableAllIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead.
func (*DisableAllIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{9}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{7}
}
// 查找单个IP地址
@@ -520,7 +444,7 @@ type FindEnabledNodeIPAddressRequest struct {
func (x *FindEnabledNodeIPAddressRequest) Reset() {
*x = FindEnabledNodeIPAddressRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[10]
mi := &file_service_node_ip_address_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -533,7 +457,7 @@ func (x *FindEnabledNodeIPAddressRequest) String() string {
func (*FindEnabledNodeIPAddressRequest) ProtoMessage() {}
func (x *FindEnabledNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[10]
mi := &file_service_node_ip_address_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -546,7 +470,7 @@ func (x *FindEnabledNodeIPAddressRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindEnabledNodeIPAddressRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledNodeIPAddressRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{10}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{8}
}
func (x *FindEnabledNodeIPAddressRequest) GetAddressId() int64 {
@@ -567,7 +491,7 @@ type FindEnabledNodeIPAddressResponse struct {
func (x *FindEnabledNodeIPAddressResponse) Reset() {
*x = FindEnabledNodeIPAddressResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[11]
mi := &file_service_node_ip_address_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -580,7 +504,7 @@ func (x *FindEnabledNodeIPAddressResponse) String() string {
func (*FindEnabledNodeIPAddressResponse) ProtoMessage() {}
func (x *FindEnabledNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[11]
mi := &file_service_node_ip_address_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -593,7 +517,7 @@ func (x *FindEnabledNodeIPAddressResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindEnabledNodeIPAddressResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledNodeIPAddressResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{11}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{9}
}
func (x *FindEnabledNodeIPAddressResponse) GetIpAddress() *NodeIPAddress {
@@ -615,7 +539,7 @@ type FindAllEnabledIPAddressesWithNodeIdRequest struct {
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) Reset() {
*x = FindAllEnabledIPAddressesWithNodeIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[12]
mi := &file_service_node_ip_address_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -628,7 +552,7 @@ func (x *FindAllEnabledIPAddressesWithNodeIdRequest) String() string {
func (*FindAllEnabledIPAddressesWithNodeIdRequest) ProtoMessage() {}
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[12]
mi := &file_service_node_ip_address_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -641,7 +565,7 @@ func (x *FindAllEnabledIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect
// Deprecated: Use FindAllEnabledIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{12}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{10}
}
func (x *FindAllEnabledIPAddressesWithNodeIdRequest) GetNodeId() int64 {
@@ -662,7 +586,7 @@ type FindAllEnabledIPAddressesWithNodeIdResponse struct {
func (x *FindAllEnabledIPAddressesWithNodeIdResponse) Reset() {
*x = FindAllEnabledIPAddressesWithNodeIdResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_ip_address_proto_msgTypes[13]
mi := &file_service_node_ip_address_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -675,7 +599,7 @@ func (x *FindAllEnabledIPAddressesWithNodeIdResponse) String() string {
func (*FindAllEnabledIPAddressesWithNodeIdResponse) ProtoMessage() {}
func (x *FindAllEnabledIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_ip_address_proto_msgTypes[13]
mi := &file_service_node_ip_address_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -688,7 +612,7 @@ func (x *FindAllEnabledIPAddressesWithNodeIdResponse) ProtoReflect() protoreflec
// Deprecated: Use FindAllEnabledIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) {
return file_service_node_ip_address_proto_rawDescGZIP(), []int{13}
return file_service_node_ip_address_proto_rawDescGZIP(), []int{11}
}
func (x *FindAllEnabledIPAddressesWithNodeIdResponse) GetAddresses() []*NodeIPAddress {
@@ -705,32 +629,29 @@ var file_service_node_ip_address_proto_rawDesc = []byte{
0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x1a, 0x1b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f,
0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x58, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 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, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x3b, 0x0a, 0x1b, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64,
0x1a, 0x12, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 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, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e,
0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x3b,
0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a,
0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x1a, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x1d, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64,
0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65,
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64,
0x22, 0x23, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x0a, 0x1b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x58, 0x0a, 0x20, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x16, 0x0a,
0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e,
0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x1b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
@@ -762,56 +683,54 @@ var file_service_node_ip_address_proto_rawDesc = []byte{
0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x61, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x32, 0xf7, 0x05, 0x0a, 0x14,
0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x32, 0xdb, 0x05, 0x0a, 0x14,
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13,
0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x13,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x64, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
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, 0x57, 0x0a, 0x19, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59,
0x0a, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61,
0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x1f, 0x64, 0x69, 0x73,
0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2a, 0x2e, 0x70,
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e,
0x6f, 0x64, 0x65, 0x49, 0x64, 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, 0x59, 0x0a, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e,
0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62,
0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a,
0x1f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64,
0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c,
0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e,
0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x70,
0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69,
0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a,
0x23, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x64, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x86, 0x01, 0x0a, 0x23, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69,
0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49,
0x64, 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 (
@@ -826,41 +745,40 @@ func file_service_node_ip_address_proto_rawDescGZIP() []byte {
return file_service_node_ip_address_proto_rawDescData
}
var file_service_node_ip_address_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_service_node_ip_address_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_service_node_ip_address_proto_goTypes = []interface{}{
(*CreateNodeIPAddressRequest)(nil), // 0: pb.CreateNodeIPAddressRequest
(*CreateNodeIPAddressResponse)(nil), // 1: pb.CreateNodeIPAddressResponse
(*UpdateNodeIPAddressRequest)(nil), // 2: pb.UpdateNodeIPAddressRequest
(*UpdateNodeIPAddressResponse)(nil), // 3: pb.UpdateNodeIPAddressResponse
(*UpdateNodeIPAddressNodeIdRequest)(nil), // 4: pb.UpdateNodeIPAddressNodeIdRequest
(*UpdateNodeIPAddressNodeIdResponse)(nil), // 5: pb.UpdateNodeIPAddressNodeIdResponse
(*DisableNodeIPAddressRequest)(nil), // 6: pb.DisableNodeIPAddressRequest
(*DisableNodeIPAddressResponse)(nil), // 7: pb.DisableNodeIPAddressResponse
(*DisableAllIPAddressesWithNodeIdRequest)(nil), // 8: pb.DisableAllIPAddressesWithNodeIdRequest
(*DisableAllIPAddressesWithNodeIdResponse)(nil), // 9: pb.DisableAllIPAddressesWithNodeIdResponse
(*FindEnabledNodeIPAddressRequest)(nil), // 10: pb.FindEnabledNodeIPAddressRequest
(*FindEnabledNodeIPAddressResponse)(nil), // 11: pb.FindEnabledNodeIPAddressResponse
(*FindAllEnabledIPAddressesWithNodeIdRequest)(nil), // 12: pb.FindAllEnabledIPAddressesWithNodeIdRequest
(*FindAllEnabledIPAddressesWithNodeIdResponse)(nil), // 13: pb.FindAllEnabledIPAddressesWithNodeIdResponse
(*NodeIPAddress)(nil), // 14: pb.NodeIPAddress
(*UpdateNodeIPAddressNodeIdRequest)(nil), // 3: pb.UpdateNodeIPAddressNodeIdRequest
(*DisableNodeIPAddressRequest)(nil), // 4: pb.DisableNodeIPAddressRequest
(*DisableNodeIPAddressResponse)(nil), // 5: pb.DisableNodeIPAddressResponse
(*DisableAllIPAddressesWithNodeIdRequest)(nil), // 6: pb.DisableAllIPAddressesWithNodeIdRequest
(*DisableAllIPAddressesWithNodeIdResponse)(nil), // 7: pb.DisableAllIPAddressesWithNodeIdResponse
(*FindEnabledNodeIPAddressRequest)(nil), // 8: pb.FindEnabledNodeIPAddressRequest
(*FindEnabledNodeIPAddressResponse)(nil), // 9: pb.FindEnabledNodeIPAddressResponse
(*FindAllEnabledIPAddressesWithNodeIdRequest)(nil), // 10: pb.FindAllEnabledIPAddressesWithNodeIdRequest
(*FindAllEnabledIPAddressesWithNodeIdResponse)(nil), // 11: pb.FindAllEnabledIPAddressesWithNodeIdResponse
(*NodeIPAddress)(nil), // 12: pb.NodeIPAddress
(*RPCUpdateSuccess)(nil), // 13: pb.RPCUpdateSuccess
}
var file_service_node_ip_address_proto_depIdxs = []int32{
14, // 0: pb.FindEnabledNodeIPAddressResponse.ipAddress:type_name -> pb.NodeIPAddress
14, // 1: pb.FindAllEnabledIPAddressesWithNodeIdResponse.addresses:type_name -> pb.NodeIPAddress
12, // 0: pb.FindEnabledNodeIPAddressResponse.ipAddress:type_name -> pb.NodeIPAddress
12, // 1: pb.FindAllEnabledIPAddressesWithNodeIdResponse.addresses:type_name -> pb.NodeIPAddress
0, // 2: pb.NodeIPAddressService.createNodeIPAddress:input_type -> pb.CreateNodeIPAddressRequest
2, // 3: pb.NodeIPAddressService.updateNodeIPAddress:input_type -> pb.UpdateNodeIPAddressRequest
4, // 4: pb.NodeIPAddressService.updateNodeIPAddressNodeId:input_type -> pb.UpdateNodeIPAddressNodeIdRequest
6, // 5: pb.NodeIPAddressService.disableNodeIPAddress:input_type -> pb.DisableNodeIPAddressRequest
8, // 6: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:input_type -> pb.DisableAllIPAddressesWithNodeIdRequest
10, // 7: pb.NodeIPAddressService.findEnabledNodeIPAddress:input_type -> pb.FindEnabledNodeIPAddressRequest
12, // 8: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:input_type -> pb.FindAllEnabledIPAddressesWithNodeIdRequest
3, // 4: pb.NodeIPAddressService.updateNodeIPAddressNodeId:input_type -> pb.UpdateNodeIPAddressNodeIdRequest
4, // 5: pb.NodeIPAddressService.disableNodeIPAddress:input_type -> pb.DisableNodeIPAddressRequest
6, // 6: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:input_type -> pb.DisableAllIPAddressesWithNodeIdRequest
8, // 7: pb.NodeIPAddressService.findEnabledNodeIPAddress:input_type -> pb.FindEnabledNodeIPAddressRequest
10, // 8: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:input_type -> pb.FindAllEnabledIPAddressesWithNodeIdRequest
1, // 9: pb.NodeIPAddressService.createNodeIPAddress:output_type -> pb.CreateNodeIPAddressResponse
3, // 10: pb.NodeIPAddressService.updateNodeIPAddress:output_type -> pb.UpdateNodeIPAddressResponse
5, // 11: pb.NodeIPAddressService.updateNodeIPAddressNodeId:output_type -> pb.UpdateNodeIPAddressNodeIdResponse
7, // 12: pb.NodeIPAddressService.disableNodeIPAddress:output_type -> pb.DisableNodeIPAddressResponse
9, // 13: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:output_type -> pb.DisableAllIPAddressesWithNodeIdResponse
11, // 14: pb.NodeIPAddressService.findEnabledNodeIPAddress:output_type -> pb.FindEnabledNodeIPAddressResponse
13, // 15: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:output_type -> pb.FindAllEnabledIPAddressesWithNodeIdResponse
13, // 10: pb.NodeIPAddressService.updateNodeIPAddress:output_type -> pb.RPCUpdateSuccess
13, // 11: pb.NodeIPAddressService.updateNodeIPAddressNodeId:output_type -> pb.RPCUpdateSuccess
5, // 12: pb.NodeIPAddressService.disableNodeIPAddress:output_type -> pb.DisableNodeIPAddressResponse
7, // 13: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:output_type -> pb.DisableAllIPAddressesWithNodeIdResponse
9, // 14: pb.NodeIPAddressService.findEnabledNodeIPAddress:output_type -> pb.FindEnabledNodeIPAddressResponse
11, // 15: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:output_type -> pb.FindAllEnabledIPAddressesWithNodeIdResponse
9, // [9:16] is the sub-list for method output_type
2, // [2:9] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
@@ -874,6 +792,7 @@ func file_service_node_ip_address_proto_init() {
return
}
file_model_node_ip_address_proto_init()
file_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_node_ip_address_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateNodeIPAddressRequest); i {
@@ -912,18 +831,6 @@ func file_service_node_ip_address_proto_init() {
}
}
file_service_node_ip_address_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNodeIPAddressResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_ip_address_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNodeIPAddressNodeIdRequest); i {
case 0:
return &v.state
@@ -935,19 +842,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNodeIPAddressNodeIdResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_node_ip_address_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DisableNodeIPAddressRequest); i {
case 0:
return &v.state
@@ -959,7 +854,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DisableNodeIPAddressResponse); i {
case 0:
return &v.state
@@ -971,7 +866,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DisableAllIPAddressesWithNodeIdRequest); i {
case 0:
return &v.state
@@ -983,7 +878,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DisableAllIPAddressesWithNodeIdResponse); i {
case 0:
return &v.state
@@ -995,7 +890,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNodeIPAddressRequest); i {
case 0:
return &v.state
@@ -1007,7 +902,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNodeIPAddressResponse); i {
case 0:
return &v.state
@@ -1019,7 +914,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledIPAddressesWithNodeIdRequest); i {
case 0:
return &v.state
@@ -1031,7 +926,7 @@ func file_service_node_ip_address_proto_init() {
return nil
}
}
file_service_node_ip_address_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_service_node_ip_address_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledIPAddressesWithNodeIdResponse); i {
case 0:
return &v.state
@@ -1050,7 +945,7 @@ func file_service_node_ip_address_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_node_ip_address_proto_rawDesc,
NumEnums: 0,
NumMessages: 14,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
@@ -1079,9 +974,9 @@ type NodeIPAddressServiceClient interface {
// 创建IP地址
CreateNodeIPAddress(ctx context.Context, in *CreateNodeIPAddressRequest, opts ...grpc.CallOption) (*CreateNodeIPAddressResponse, error)
// 修改IP地址
UpdateNodeIPAddress(ctx context.Context, in *UpdateNodeIPAddressRequest, opts ...grpc.CallOption) (*UpdateNodeIPAddressResponse, error)
UpdateNodeIPAddress(ctx context.Context, in *UpdateNodeIPAddressRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error)
// 修改IP地址所属节点
UpdateNodeIPAddressNodeId(ctx context.Context, in *UpdateNodeIPAddressNodeIdRequest, opts ...grpc.CallOption) (*UpdateNodeIPAddressNodeIdResponse, error)
UpdateNodeIPAddressNodeId(ctx context.Context, in *UpdateNodeIPAddressNodeIdRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error)
// 禁用单个IP地址
DisableNodeIPAddress(ctx context.Context, in *DisableNodeIPAddressRequest, opts ...grpc.CallOption) (*DisableNodeIPAddressResponse, error)
// 禁用节点的所有IP地址
@@ -1109,8 +1004,8 @@ func (c *nodeIPAddressServiceClient) CreateNodeIPAddress(ctx context.Context, in
return out, nil
}
func (c *nodeIPAddressServiceClient) UpdateNodeIPAddress(ctx context.Context, in *UpdateNodeIPAddressRequest, opts ...grpc.CallOption) (*UpdateNodeIPAddressResponse, error) {
out := new(UpdateNodeIPAddressResponse)
func (c *nodeIPAddressServiceClient) UpdateNodeIPAddress(ctx context.Context, in *UpdateNodeIPAddressRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error) {
out := new(RPCUpdateSuccess)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/updateNodeIPAddress", in, out, opts...)
if err != nil {
return nil, err
@@ -1118,8 +1013,8 @@ func (c *nodeIPAddressServiceClient) UpdateNodeIPAddress(ctx context.Context, in
return out, nil
}
func (c *nodeIPAddressServiceClient) UpdateNodeIPAddressNodeId(ctx context.Context, in *UpdateNodeIPAddressNodeIdRequest, opts ...grpc.CallOption) (*UpdateNodeIPAddressNodeIdResponse, error) {
out := new(UpdateNodeIPAddressNodeIdResponse)
func (c *nodeIPAddressServiceClient) UpdateNodeIPAddressNodeId(ctx context.Context, in *UpdateNodeIPAddressNodeIdRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error) {
out := new(RPCUpdateSuccess)
err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/updateNodeIPAddressNodeId", in, out, opts...)
if err != nil {
return nil, err
@@ -1168,9 +1063,9 @@ type NodeIPAddressServiceServer interface {
// 创建IP地址
CreateNodeIPAddress(context.Context, *CreateNodeIPAddressRequest) (*CreateNodeIPAddressResponse, error)
// 修改IP地址
UpdateNodeIPAddress(context.Context, *UpdateNodeIPAddressRequest) (*UpdateNodeIPAddressResponse, error)
UpdateNodeIPAddress(context.Context, *UpdateNodeIPAddressRequest) (*RPCUpdateSuccess, error)
// 修改IP地址所属节点
UpdateNodeIPAddressNodeId(context.Context, *UpdateNodeIPAddressNodeIdRequest) (*UpdateNodeIPAddressNodeIdResponse, error)
UpdateNodeIPAddressNodeId(context.Context, *UpdateNodeIPAddressNodeIdRequest) (*RPCUpdateSuccess, error)
// 禁用单个IP地址
DisableNodeIPAddress(context.Context, *DisableNodeIPAddressRequest) (*DisableNodeIPAddressResponse, error)
// 禁用节点的所有IP地址
@@ -1188,10 +1083,10 @@ type UnimplementedNodeIPAddressServiceServer struct {
func (*UnimplementedNodeIPAddressServiceServer) CreateNodeIPAddress(context.Context, *CreateNodeIPAddressRequest) (*CreateNodeIPAddressResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateNodeIPAddress not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddress(context.Context, *UpdateNodeIPAddressRequest) (*UpdateNodeIPAddressResponse, error) {
func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddress(context.Context, *UpdateNodeIPAddressRequest) (*RPCUpdateSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeIPAddress not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddressNodeId(context.Context, *UpdateNodeIPAddressNodeIdRequest) (*UpdateNodeIPAddressNodeIdResponse, error) {
func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddressNodeId(context.Context, *UpdateNodeIPAddressNodeIdRequest) (*RPCUpdateSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeIPAddressNodeId not implemented")
}
func (*UnimplementedNodeIPAddressServiceServer) DisableNodeIPAddress(context.Context, *DisableNodeIPAddressRequest) (*DisableNodeIPAddressResponse, error) {