From a011a040996dd4cdb0152aae2206aebc7f4f7034 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 26 五月 2021 10:49:08 +0800
Subject: [PATCH] refactor, log dir.

---
 proto/source/bhome_msg/bhome_msg_api.pb.go |  475 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 364 insertions(+), 111 deletions(-)

diff --git a/proto/source/bhome_msg/bhome_msg_api.pb.go b/proto/source/bhome_msg/bhome_msg_api.pb.go
index 3598101..2a565f0 100644
--- a/proto/source/bhome_msg/bhome_msg_api.pb.go
+++ b/proto/source/bhome_msg/bhome_msg_api.pb.go
@@ -23,9 +23,10 @@
 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
 
 type BHAddress struct {
-	MqId uint64 `protobuf:"varint,1,opt,name=mq_id,json=mqId,proto3" json:"mq_id,omitempty"`
-	Ip   []byte `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
-	Port int32  `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
+	MqId    uint64 `protobuf:"varint,1,opt,name=mq_id,json=mqId,proto3" json:"mq_id,omitempty"`
+	AbsAddr int64  `protobuf:"varint,2,opt,name=abs_addr,json=absAddr,proto3" json:"abs_addr,omitempty"`
+	Ip      []byte `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
+	Port    int32  `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
 }
 
 func (m *BHAddress) Reset()         { *m = BHAddress{} }
@@ -64,6 +65,13 @@
 func (m *BHAddress) GetMqId() uint64 {
 	if m != nil {
 		return m.MqId
+	}
+	return 0
+}
+
+func (m *BHAddress) GetAbsAddr() int64 {
+	if m != nil {
+		return m.AbsAddr
 	}
 	return 0
 }
@@ -395,8 +403,7 @@
 }
 
 type MsgRegister struct {
-	Proc  *ProcInfo    `protobuf:"bytes,1,opt,name=proc,proto3" json:"proc,omitempty"`
-	Addrs []*BHAddress `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"`
+	Proc *ProcInfo `protobuf:"bytes,1,opt,name=proc,proto3" json:"proc,omitempty"`
 }
 
 func (m *MsgRegister) Reset()         { *m = MsgRegister{} }
@@ -435,13 +442,6 @@
 func (m *MsgRegister) GetProc() *ProcInfo {
 	if m != nil {
 		return m.Proc
-	}
-	return nil
-}
-
-func (m *MsgRegister) GetAddrs() []*BHAddress {
-	if m != nil {
-		return m.Addrs
 	}
 	return nil
 }
@@ -727,8 +727,8 @@
 }
 
 type MsgQueryProcReply struct {
-	Errmsg *ErrorMsg   `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
-	Proc   []*ProcInfo `protobuf:"bytes,2,rep,name=proc,proto3" json:"proc,omitempty"`
+	Errmsg   *ErrorMsg                 `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
+	ProcList []*MsgQueryProcReply_Info `protobuf:"bytes,2,rep,name=proc_list,json=procList,proto3" json:"proc_list,omitempty"`
 }
 
 func (m *MsgQueryProcReply) Reset()         { *m = MsgQueryProcReply{} }
@@ -771,9 +771,69 @@
 	return nil
 }
 
-func (m *MsgQueryProcReply) GetProc() []*ProcInfo {
+func (m *MsgQueryProcReply) GetProcList() []*MsgQueryProcReply_Info {
+	if m != nil {
+		return m.ProcList
+	}
+	return nil
+}
+
+type MsgQueryProcReply_Info struct {
+	Proc   *ProcInfo     `protobuf:"bytes,1,opt,name=proc,proto3" json:"proc,omitempty"`
+	Online bool          `protobuf:"varint,2,opt,name=online,proto3" json:"online,omitempty"`
+	Topics *MsgTopicList `protobuf:"bytes,3,opt,name=topics,proto3" json:"topics,omitempty"`
+}
+
+func (m *MsgQueryProcReply_Info) Reset()         { *m = MsgQueryProcReply_Info{} }
+func (m *MsgQueryProcReply_Info) String() string { return proto.CompactTextString(m) }
+func (*MsgQueryProcReply_Info) ProtoMessage()    {}
+func (*MsgQueryProcReply_Info) Descriptor() ([]byte, []int) {
+	return fileDescriptor_a49c9c1f511a168c, []int{13, 0}
+}
+func (m *MsgQueryProcReply_Info) XXX_Unmarshal(b []byte) error {
+	return m.Unmarshal(b)
+}
+func (m *MsgQueryProcReply_Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	if deterministic {
+		return xxx_messageInfo_MsgQueryProcReply_Info.Marshal(b, m, deterministic)
+	} else {
+		b = b[:cap(b)]
+		n, err := m.MarshalTo(b)
+		if err != nil {
+			return nil, err
+		}
+		return b[:n], nil
+	}
+}
+func (m *MsgQueryProcReply_Info) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_MsgQueryProcReply_Info.Merge(m, src)
+}
+func (m *MsgQueryProcReply_Info) XXX_Size() int {
+	return m.Size()
+}
+func (m *MsgQueryProcReply_Info) XXX_DiscardUnknown() {
+	xxx_messageInfo_MsgQueryProcReply_Info.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgQueryProcReply_Info proto.InternalMessageInfo
+
+func (m *MsgQueryProcReply_Info) GetProc() *ProcInfo {
 	if m != nil {
 		return m.Proc
+	}
+	return nil
+}
+
+func (m *MsgQueryProcReply_Info) GetOnline() bool {
+	if m != nil {
+		return m.Online
+	}
+	return false
+}
+
+func (m *MsgQueryProcReply_Info) GetTopics() *MsgTopicList {
+	if m != nil {
+		return m.Topics
 	}
 	return nil
 }
@@ -794,46 +854,51 @@
 	proto.RegisterType((*MsgQueryTopicReply_BHNodeAddress)(nil), "bhome_msg.MsgQueryTopicReply.BHNodeAddress")
 	proto.RegisterType((*MsgQueryProc)(nil), "bhome_msg.MsgQueryProc")
 	proto.RegisterType((*MsgQueryProcReply)(nil), "bhome_msg.MsgQueryProcReply")
+	proto.RegisterType((*MsgQueryProcReply_Info)(nil), "bhome_msg.MsgQueryProcReply.Info")
 }
 
 func init() { proto.RegisterFile("bhome_msg_api.proto", fileDescriptor_a49c9c1f511a168c) }
 
 var fileDescriptor_a49c9c1f511a168c = []byte{
-	// 537 bytes of a gzipped FileDescriptorProto
-	0x1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1, 0xfc, 0x01, 0xb8, 0x86, 0xed, 0x6e, 0x7e, 0x3b, 0x77, 0x8d, 0xb3, 0x73, 0xd7, 0xf8,
+	0x71, 0xee, 0x1a, 0x5f, 0x2f, 0xdc, 0xb9, 0xb3, 0x0b, 0x77, 0xee, 0xfb, 0x85, 0x3b, 0x37, 0x68,
+	0x7f, 0xb4, 0xc2, 0xed, 0x86, 0x9d, 0x74, 0xf4, 0x4f, 0xf9, 0xf8, 0x77, 0x00, 0x00, 0x00, 0xff,
+	0xff, 0xe9, 0xcf, 0xb1, 0x11, 0x5c, 0x05, 0x00, 0x00,
 }
 
 func (m *BHAddress) Marshal() (dAtA []byte, err error) {
@@ -856,14 +921,19 @@
 		i++
 		i = encodeVarintBhomeMsgApi(dAtA, i, uint64(m.MqId))
 	}
+	if m.AbsAddr != 0 {
+		dAtA[i] = 0x10
+		i++
+		i = encodeVarintBhomeMsgApi(dAtA, i, uint64(m.AbsAddr))
+	}
 	if len(m.Ip) > 0 {
-		dAtA[i] = 0x12
+		dAtA[i] = 0x1a
 		i++
 		i = encodeVarintBhomeMsgApi(dAtA, i, uint64(len(m.Ip)))
 		i += copy(dAtA[i:], m.Ip)
 	}
 	if m.Port != 0 {
-		dAtA[i] = 0x18
+		dAtA[i] = 0x20
 		i++
 		i = encodeVarintBhomeMsgApi(dAtA, i, uint64(m.Port))
 	}
@@ -1085,18 +1155,6 @@
 		}
 		i += n3
 	}
-	if len(m.Addrs) > 0 {
-		for _, msg := range m.Addrs {
-			dAtA[i] = 0x12
-			i++
-			i = encodeVarintBhomeMsgApi(dAtA, i, uint64(msg.Size()))
-			n, err := msg.MarshalTo(dAtA[i:])
-			if err != nil {
-				return 0, err
-			}
-			i += n
-		}
-	}
 	return i, nil
 }
 
@@ -1303,8 +1361,8 @@
 		}
 		i += n8
 	}
-	if len(m.Proc) > 0 {
-		for _, msg := range m.Proc {
+	if len(m.ProcList) > 0 {
+		for _, msg := range m.ProcList {
 			dAtA[i] = 0x12
 			i++
 			i = encodeVarintBhomeMsgApi(dAtA, i, uint64(msg.Size()))
@@ -1314,6 +1372,54 @@
 			}
 			i += n
 		}
+	}
+	return i, nil
+}
+
+func (m *MsgQueryProcReply_Info) Marshal() (dAtA []byte, err error) {
+	size := m.Size()
+	dAtA = make([]byte, size)
+	n, err := m.MarshalTo(dAtA)
+	if err != nil {
+		return nil, err
+	}
+	return dAtA[:n], nil
+}
+
+func (m *MsgQueryProcReply_Info) MarshalTo(dAtA []byte) (int, error) {
+	var i int
+	_ = i
+	var l int
+	_ = l
+	if m.Proc != nil {
+		dAtA[i] = 0xa
+		i++
+		i = encodeVarintBhomeMsgApi(dAtA, i, uint64(m.Proc.Size()))
+		n9, err9 := m.Proc.MarshalTo(dAtA[i:])
+		if err9 != nil {
+			return 0, err9
+		}
+		i += n9
+	}
+	if m.Online {
+		dAtA[i] = 0x10
+		i++
+		if m.Online {
+			dAtA[i] = 1
+		} else {
+			dAtA[i] = 0
+		}
+		i++
+	}
+	if m.Topics != nil {
+		dAtA[i] = 0x1a
+		i++
+		i = encodeVarintBhomeMsgApi(dAtA, i, uint64(m.Topics.Size()))
+		n10, err10 := m.Topics.MarshalTo(dAtA[i:])
+		if err10 != nil {
+			return 0, err10
+		}
+		i += n10
 	}
 	return i, nil
 }
@@ -1335,6 +1441,9 @@
 	_ = l
 	if m.MqId != 0 {
 		n += 1 + sovBhomeMsgApi(uint64(m.MqId))
+	}
+	if m.AbsAddr != 0 {
+		n += 1 + sovBhomeMsgApi(uint64(m.AbsAddr))
 	}
 	l = len(m.Ip)
 	if l > 0 {
@@ -1460,12 +1569,6 @@
 		l = m.Proc.Size()
 		n += 1 + l + sovBhomeMsgApi(uint64(l))
 	}
-	if len(m.Addrs) > 0 {
-		for _, e := range m.Addrs {
-			l = e.Size()
-			n += 1 + l + sovBhomeMsgApi(uint64(l))
-		}
-	}
 	return n
 }
 
@@ -1567,11 +1670,31 @@
 		l = m.Errmsg.Size()
 		n += 1 + l + sovBhomeMsgApi(uint64(l))
 	}
-	if len(m.Proc) > 0 {
-		for _, e := range m.Proc {
+	if len(m.ProcList) > 0 {
+		for _, e := range m.ProcList {
 			l = e.Size()
 			n += 1 + l + sovBhomeMsgApi(uint64(l))
 		}
+	}
+	return n
+}
+
+func (m *MsgQueryProcReply_Info) Size() (n int) {
+	if m == nil {
+		return 0
+	}
+	var l int
+	_ = l
+	if m.Proc != nil {
+		l = m.Proc.Size()
+		n += 1 + l + sovBhomeMsgApi(uint64(l))
+	}
+	if m.Online {
+		n += 2
+	}
+	if m.Topics != nil {
+		l = m.Topics.Size()
+		n += 1 + l + sovBhomeMsgApi(uint64(l))
 	}
 	return n
 }
@@ -1631,6 +1754,25 @@
 				}
 			}
 		case 2:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field AbsAddr", wireType)
+			}
+			m.AbsAddr = 0
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowBhomeMsgApi
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				m.AbsAddr |= int64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+		case 3:
 			if wireType != 2 {
 				return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
 			}
@@ -1664,7 +1806,7 @@
 				m.Ip = []byte{}
 			}
 			iNdEx = postIndex
-		case 3:
+		case 4:
 			if wireType != 0 {
 				return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
 			}
@@ -2500,40 +2642,6 @@
 				return err
 			}
 			iNdEx = postIndex
-		case 2:
-			if wireType != 2 {
-				return fmt.Errorf("proto: wrong wireType = %d for field Addrs", wireType)
-			}
-			var msglen int
-			for shift := uint(0); ; shift += 7 {
-				if shift >= 64 {
-					return ErrIntOverflowBhomeMsgApi
-				}
-				if iNdEx >= l {
-					return io.ErrUnexpectedEOF
-				}
-				b := dAtA[iNdEx]
-				iNdEx++
-				msglen |= int(b&0x7F) << shift
-				if b < 0x80 {
-					break
-				}
-			}
-			if msglen < 0 {
-				return ErrInvalidLengthBhomeMsgApi
-			}
-			postIndex := iNdEx + msglen
-			if postIndex < 0 {
-				return ErrInvalidLengthBhomeMsgApi
-			}
-			if postIndex > l {
-				return io.ErrUnexpectedEOF
-			}
-			m.Addrs = append(m.Addrs, &BHAddress{})
-			if err := m.Addrs[len(m.Addrs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
-				return err
-			}
-			iNdEx = postIndex
 		default:
 			iNdEx = preIndex
 			skippy, err := skipBhomeMsgApi(dAtA[iNdEx:])
@@ -3223,6 +3331,93 @@
 			iNdEx = postIndex
 		case 2:
 			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field ProcList", wireType)
+			}
+			var msglen int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowBhomeMsgApi
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				msglen |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if msglen < 0 {
+				return ErrInvalidLengthBhomeMsgApi
+			}
+			postIndex := iNdEx + msglen
+			if postIndex < 0 {
+				return ErrInvalidLengthBhomeMsgApi
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.ProcList = append(m.ProcList, &MsgQueryProcReply_Info{})
+			if err := m.ProcList[len(m.ProcList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+				return err
+			}
+			iNdEx = postIndex
+		default:
+			iNdEx = preIndex
+			skippy, err := skipBhomeMsgApi(dAtA[iNdEx:])
+			if err != nil {
+				return err
+			}
+			if skippy < 0 {
+				return ErrInvalidLengthBhomeMsgApi
+			}
+			if (iNdEx + skippy) < 0 {
+				return ErrInvalidLengthBhomeMsgApi
+			}
+			if (iNdEx + skippy) > l {
+				return io.ErrUnexpectedEOF
+			}
+			iNdEx += skippy
+		}
+	}
+
+	if iNdEx > l {
+		return io.ErrUnexpectedEOF
+	}
+	return nil
+}
+func (m *MsgQueryProcReply_Info) Unmarshal(dAtA []byte) error {
+	l := len(dAtA)
+	iNdEx := 0
+	for iNdEx < l {
+		preIndex := iNdEx
+		var wire uint64
+		for shift := uint(0); ; shift += 7 {
+			if shift >= 64 {
+				return ErrIntOverflowBhomeMsgApi
+			}
+			if iNdEx >= l {
+				return io.ErrUnexpectedEOF
+			}
+			b := dAtA[iNdEx]
+			iNdEx++
+			wire |= uint64(b&0x7F) << shift
+			if b < 0x80 {
+				break
+			}
+		}
+		fieldNum := int32(wire >> 3)
+		wireType := int(wire & 0x7)
+		if wireType == 4 {
+			return fmt.Errorf("proto: Info: wiretype end group for non-group")
+		}
+		if fieldNum <= 0 {
+			return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire)
+		}
+		switch fieldNum {
+		case 1:
+			if wireType != 2 {
 				return fmt.Errorf("proto: wrong wireType = %d for field Proc", wireType)
 			}
 			var msglen int
@@ -3250,8 +3445,66 @@
 			if postIndex > l {
 				return io.ErrUnexpectedEOF
 			}
-			m.Proc = append(m.Proc, &ProcInfo{})
-			if err := m.Proc[len(m.Proc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+			if m.Proc == nil {
+				m.Proc = &ProcInfo{}
+			}
+			if err := m.Proc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+				return err
+			}
+			iNdEx = postIndex
+		case 2:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Online", wireType)
+			}
+			var v int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowBhomeMsgApi
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				v |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			m.Online = bool(v != 0)
+		case 3:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
+			}
+			var msglen int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowBhomeMsgApi
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				msglen |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if msglen < 0 {
+				return ErrInvalidLengthBhomeMsgApi
+			}
+			postIndex := iNdEx + msglen
+			if postIndex < 0 {
+				return ErrInvalidLengthBhomeMsgApi
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			if m.Topics == nil {
+				m.Topics = &MsgTopicList{}
+			}
+			if err := m.Topics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 				return err
 			}
 			iNdEx = postIndex

--
Gitblit v1.8.0