From 950d89112665bead13fa79ae7e37b8addc188ca8 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 13 十月 2020 10:47:43 +0800
Subject: [PATCH] isTriggerByPreSdk set 0:非触发,1:必要触发,2:非必要触发
---
sysset.pb.go | 525 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 461 insertions(+), 64 deletions(-)
diff --git a/sysset.pb.go b/sysset.pb.go
index c91b5c2..f762669 100644
--- a/sysset.pb.go
+++ b/sysset.pb.go
@@ -8,6 +8,7 @@
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
+ math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -22,22 +23,24 @@
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type LocalConfig struct {
- ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
- ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
- ServerType int32 `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"`
- ServerIp string `protobuf:"bytes,4,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
- AlarmIp string `protobuf:"bytes,5,opt,name=alarm_ip,json=alarmIp,proto3" json:"alarm_ip,omitempty"`
- AlarmPort int32 `protobuf:"varint,6,opt,name=alarm_port,json=alarmPort,proto3" json:"alarm_port,omitempty"`
- WebPicIp string `protobuf:"bytes,7,opt,name=web_pic_ip,json=webPicIp,proto3" json:"web_pic_ip,omitempty"`
- WebPicPort int32 `protobuf:"varint,8,opt,name=web_pic_port,json=webPicPort,proto3" json:"web_pic_port,omitempty"`
- EsPicIp string `protobuf:"bytes,9,opt,name=es_pic_ip,json=esPicIp,proto3" json:"es_pic_ip,omitempty"`
- EsPicPort int32 `protobuf:"varint,10,opt,name=es_pic_port,json=esPicPort,proto3" json:"es_pic_port,omitempty"`
- CutMaxDuration int32 `protobuf:"varint,11,opt,name=cut_max_duration,json=cutMaxDuration,proto3" json:"cut_max_duration,omitempty"`
- CutMinDuration int32 `protobuf:"varint,12,opt,name=cut_min_duration,json=cutMinDuration,proto3" json:"cut_min_duration,omitempty"`
- Reserved string `protobuf:"bytes,13,opt,name=reserved,proto3" json:"reserved,omitempty"`
- GateWay string `protobuf:"bytes,14,opt,name=gate_way,json=gateWay,proto3" json:"gate_way,omitempty"`
- NetMask string `protobuf:"bytes,15,opt,name=net_mask,json=netMask,proto3" json:"net_mask,omitempty"`
- RealMax int32 `protobuf:"varint,16,opt,name=real_max,json=realMax,proto3" json:"real_max,omitempty"`
+ ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
+ ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
+ ServerType int32 `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"`
+ ServerIp string `protobuf:"bytes,4,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
+ AlarmIp string `protobuf:"bytes,5,opt,name=alarm_ip,json=alarmIp,proto3" json:"alarm_ip,omitempty"`
+ AlarmPort int32 `protobuf:"varint,6,opt,name=alarm_port,json=alarmPort,proto3" json:"alarm_port,omitempty"`
+ WebPicIp string `protobuf:"bytes,7,opt,name=web_pic_ip,json=webPicIp,proto3" json:"web_pic_ip,omitempty"`
+ WebPicPort int32 `protobuf:"varint,8,opt,name=web_pic_port,json=webPicPort,proto3" json:"web_pic_port,omitempty"`
+ EsPicIp string `protobuf:"bytes,9,opt,name=es_pic_ip,json=esPicIp,proto3" json:"es_pic_ip,omitempty"`
+ EsPicPort int32 `protobuf:"varint,10,opt,name=es_pic_port,json=esPicPort,proto3" json:"es_pic_port,omitempty"`
+ CutMaxDuration int32 `protobuf:"varint,11,opt,name=cut_max_duration,json=cutMaxDuration,proto3" json:"cut_max_duration,omitempty"`
+ CutMinDuration int32 `protobuf:"varint,12,opt,name=cut_min_duration,json=cutMinDuration,proto3" json:"cut_min_duration,omitempty"`
+ Reserved string `protobuf:"bytes,13,opt,name=reserved,proto3" json:"reserved,omitempty"`
+ GateWay string `protobuf:"bytes,14,opt,name=gate_way,json=gateWay,proto3" json:"gate_way,omitempty"`
+ NetMask string `protobuf:"bytes,15,opt,name=net_mask,json=netMask,proto3" json:"net_mask,omitempty"`
+ RealMax int32 `protobuf:"varint,16,opt,name=real_max,json=realMax,proto3" json:"real_max,omitempty"`
+ AlarmThresholdType int32 `protobuf:"varint,17,opt,name=alarm_threshold_type,json=alarmThresholdType,proto3" json:"alarm_threshold_type,omitempty"`
+ AlarmThreshold int32 `protobuf:"varint,18,opt,name=alarm_threshold,json=alarmThreshold,proto3" json:"alarm_threshold,omitempty"`
}
func (m *LocalConfig) Reset() { *m = LocalConfig{} }
@@ -185,11 +188,26 @@
return 0
}
+func (m *LocalConfig) GetAlarmThresholdType() int32 {
+ if m != nil {
+ return m.AlarmThresholdType
+ }
+ return 0
+}
+
+func (m *LocalConfig) GetAlarmThreshold() int32 {
+ if m != nil {
+ return m.AlarmThreshold
+ }
+ return 0
+}
+
type PollConfig struct {
- ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
- PollPeriod int32 `protobuf:"varint,2,opt,name=poll_period,json=pollPeriod,proto3" json:"poll_period,omitempty"`
- Delay int32 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"`
- Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
+ ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
+ PollPeriod int32 `protobuf:"varint,2,opt,name=poll_period,json=pollPeriod,proto3" json:"poll_period,omitempty"`
+ Delay int32 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"`
+ Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
+ PollChannelCount int32 `protobuf:"varint,5,opt,name=pollChannelCount,proto3" json:"pollChannelCount,omitempty"`
}
func (m *PollConfig) Reset() { *m = PollConfig{} }
@@ -251,6 +269,13 @@
return m.Enable
}
return false
+}
+
+func (m *PollConfig) GetPollChannelCount() int32 {
+ if m != nil {
+ return m.PollChannelCount
+ }
+ return 0
}
type Cluster struct {
@@ -421,53 +446,129 @@
return ""
}
+type ResourceConfig struct {
+ IpType int32 `protobuf:"varint,1,opt,name=ipType,proto3" json:"ipType,omitempty"`
+ ServiceIp string `protobuf:"bytes,2,opt,name=serviceIp,proto3" json:"serviceIp,omitempty"`
+ Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
+ FilePort int32 `protobuf:"varint,4,opt,name=filePort,proto3" json:"filePort,omitempty"`
+}
+
+func (m *ResourceConfig) Reset() { *m = ResourceConfig{} }
+func (m *ResourceConfig) String() string { return proto.CompactTextString(m) }
+func (*ResourceConfig) ProtoMessage() {}
+func (*ResourceConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_5be590c6b2a0d755, []int{4}
+}
+func (m *ResourceConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *ResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_ResourceConfig.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 *ResourceConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_ResourceConfig.Merge(m, src)
+}
+func (m *ResourceConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *ResourceConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_ResourceConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ResourceConfig proto.InternalMessageInfo
+
+func (m *ResourceConfig) GetIpType() int32 {
+ if m != nil {
+ return m.IpType
+ }
+ return 0
+}
+
+func (m *ResourceConfig) GetServiceIp() string {
+ if m != nil {
+ return m.ServiceIp
+ }
+ return ""
+}
+
+func (m *ResourceConfig) GetDomain() string {
+ if m != nil {
+ return m.Domain
+ }
+ return ""
+}
+
+func (m *ResourceConfig) GetFilePort() int32 {
+ if m != nil {
+ return m.FilePort
+ }
+ return 0
+}
+
func init() {
proto.RegisterType((*LocalConfig)(nil), "protomsg.LocalConfig")
proto.RegisterType((*PollConfig)(nil), "protomsg.PollConfig")
proto.RegisterType((*Cluster)(nil), "protomsg.Cluster")
proto.RegisterType((*ClusterNode)(nil), "protomsg.ClusterNode")
+ proto.RegisterType((*ResourceConfig)(nil), "protomsg.ResourceConfig")
}
func init() { proto.RegisterFile("sysset.proto", fileDescriptor_5be590c6b2a0d755) }
var fileDescriptor_5be590c6b2a0d755 = []byte{
- // 568 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6e, 0x13, 0x3f,
- 0x10, 0xef, 0xa6, 0x4d, 0xb2, 0x3b, 0x9b, 0x7f, 0xff, 0x95, 0xc5, 0x87, 0x29, 0xb0, 0x84, 0x9c,
- 0x22, 0x21, 0xf5, 0x00, 0x6f, 0x40, 0xb9, 0x44, 0xa2, 0x55, 0x14, 0x55, 0xe2, 0x18, 0x39, 0xeb,
- 0xa1, 0xb2, 0xba, 0xbb, 0xb6, 0x6c, 0xa7, 0xc9, 0xde, 0x78, 0x04, 0xde, 0x85, 0x97, 0xe0, 0x82,
- 0xd4, 0x23, 0x47, 0xd4, 0xbe, 0x08, 0xb2, 0xbd, 0x9b, 0xa4, 0x45, 0x42, 0x9c, 0x76, 0xe7, 0xf7,
- 0x31, 0x33, 0xb6, 0x67, 0x60, 0x60, 0x6a, 0x63, 0xd0, 0x9e, 0x28, 0x2d, 0xad, 0x24, 0xb1, 0xff,
- 0x94, 0xe6, 0x72, 0xf4, 0xe5, 0x00, 0xd2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, 0x34, 0xa3, 0x1f,
- 0x11, 0xa4, 0x3b, 0x30, 0x39, 0x84, 0xce, 0xa6, 0xe3, 0x8e, 0xe0, 0x0f, 0x4e, 0xd2, 0x79, 0x78,
- 0x92, 0x7b, 0x17, 0xbc, 0xff, 0xf7, 0x0d, 0x3b, 0xf8, 0x63, 0xc3, 0x9e, 0x42, 0xdf, 0x75, 0xe1,
- 0xbc, 0x61, 0x45, 0x7a, 0x2e, 0x9c, 0xf0, 0x2d, 0xa1, 0xfc, 0x7a, 0xb4, 0x84, 0x72, 0x29, 0x73,
- 0x8d, 0x6e, 0x62, 0xac, 0x28, 0xb1, 0x59, 0x0e, 0x08, 0xd0, 0x85, 0x28, 0xf1, 0x3d, 0xfd, 0x7e,
- 0x9b, 0x45, 0x37, 0xb7, 0x59, 0xf4, 0xeb, 0x36, 0x8b, 0xbe, 0xde, 0x65, 0x7b, 0x37, 0x77, 0xd9,
- 0xde, 0xcf, 0xbb, 0x6c, 0x6f, 0xd1, 0xf3, 0xd7, 0xf0, 0xee, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff,
- 0x77, 0xe6, 0x9a, 0x28, 0x3d, 0x04, 0x00, 0x00,
+ // 680 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4d, 0x6e, 0x13, 0x4d,
+ 0x10, 0xcd, 0x38, 0x19, 0xdb, 0x53, 0xf6, 0xe7, 0xe4, 0x6b, 0x85, 0x30, 0x84, 0x60, 0x8c, 0x37,
+ 0x58, 0x20, 0x45, 0x08, 0x6e, 0x80, 0xd9, 0x58, 0x22, 0x91, 0x35, 0x8a, 0xc4, 0xd2, 0x6a, 0xcf,
+ 0x54, 0x92, 0x56, 0x66, 0xa6, 0x5b, 0xdd, 0xed, 0x38, 0xe6, 0x14, 0x1c, 0x82, 0x1b, 0x70, 0x09,
+ 0x36, 0x48, 0x59, 0x22, 0xb1, 0x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a,
+ 0x67, 0x29, 0x8e, 0x44, 0xd5, 0xd8, 0x92, 0x30, 0xae, 0x8c, 0x17, 0x94, 0x95, 0xbe, 0x2b, 0x8f,
+ 0xcc, 0x5c, 0x4e, 0x59, 0x8e, 0xe6, 0x68, 0x6d, 0x43, 0x61, 0xb2, 0xc4, 0xef, 0xe3, 0xef, 0x37,
+ 0xdd, 0xe0, 0xfa, 0xa6, 0x1b, 0xfc, 0xbe, 0xe9, 0x06, 0x5f, 0x6e, 0xbb, 0x1b, 0xd7, 0xb7, 0xdd,
+ 0x8d, 0x9f, 0xb7, 0xdd, 0x8d, 0x69, 0xdd, 0x8e, 0xe0, 0xdd, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff,
+ 0x79, 0xee, 0xda, 0x54, 0x41, 0x05, 0x00, 0x00,
}
func (m *LocalConfig) Marshal() (dAtA []byte, err error) {
@@ -576,6 +677,20 @@
i++
i = encodeVarintSysset(dAtA, i, uint64(m.RealMax))
}
+ if m.AlarmThresholdType != 0 {
+ dAtA[i] = 0x88
+ i++
+ dAtA[i] = 0x1
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.AlarmThresholdType))
+ }
+ if m.AlarmThreshold != 0 {
+ dAtA[i] = 0x90
+ i++
+ dAtA[i] = 0x1
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.AlarmThreshold))
+ }
return i, nil
}
@@ -619,6 +734,11 @@
dAtA[i] = 0
}
i++
+ }
+ if m.PollChannelCount != 0 {
+ dAtA[i] = 0x28
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.PollChannelCount))
}
return i, nil
}
@@ -737,6 +857,46 @@
return i, nil
}
+func (m *ResourceConfig) 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 *ResourceConfig) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if m.IpType != 0 {
+ dAtA[i] = 0x8
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.IpType))
+ }
+ if len(m.ServiceIp) > 0 {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ServiceIp)))
+ i += copy(dAtA[i:], m.ServiceIp)
+ }
+ if len(m.Domain) > 0 {
+ dAtA[i] = 0x1a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.Domain)))
+ i += copy(dAtA[i:], m.Domain)
+ }
+ if m.FilePort != 0 {
+ dAtA[i] = 0x20
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.FilePort))
+ }
+ return i, nil
+}
+
func encodeVarintSysset(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
@@ -809,6 +969,12 @@
if m.RealMax != 0 {
n += 2 + sovSysset(uint64(m.RealMax))
}
+ if m.AlarmThresholdType != 0 {
+ n += 2 + sovSysset(uint64(m.AlarmThresholdType))
+ }
+ if m.AlarmThreshold != 0 {
+ n += 2 + sovSysset(uint64(m.AlarmThreshold))
+ }
return n
}
@@ -830,6 +996,9 @@
}
if m.Enable {
n += 2
+ }
+ if m.PollChannelCount != 0 {
+ n += 1 + sovSysset(uint64(m.PollChannelCount))
}
return n
}
@@ -902,15 +1071,31 @@
return n
}
-func sovSysset(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
+func (m *ResourceConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.IpType != 0 {
+ n += 1 + sovSysset(uint64(m.IpType))
+ }
+ l = len(m.ServiceIp)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.Domain)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if m.FilePort != 0 {
+ n += 1 + sovSysset(uint64(m.FilePort))
}
return n
+}
+
+func sovSysset(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
}
func sozSysset(x uint64) (n int) {
return sovSysset(uint64((x << 1) ^ uint64((int64(x) >> 63))))
@@ -1365,6 +1550,44 @@
break
}
}
+ case 17:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AlarmThresholdType", wireType)
+ }
+ m.AlarmThresholdType = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.AlarmThresholdType |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 18:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AlarmThreshold", wireType)
+ }
+ m.AlarmThreshold = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.AlarmThreshold |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
default:
iNdEx = preIndex
skippy, err := skipSysset(dAtA[iNdEx:])
@@ -1508,6 +1731,25 @@
}
}
m.Enable = bool(v != 0)
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PollChannelCount", wireType)
+ }
+ m.PollChannelCount = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.PollChannelCount |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
default:
iNdEx = preIndex
skippy, err := skipSysset(dAtA[iNdEx:])
@@ -2024,6 +2266,161 @@
}
return nil
}
+func (m *ResourceConfig) 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 ErrIntOverflowSysset
+ }
+ 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: ResourceConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ResourceConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field IpType", wireType)
+ }
+ m.IpType = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.IpType |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServiceIp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServiceIp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Domain = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FilePort", wireType)
+ }
+ m.FilePort = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.FilePort |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipSysset(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
func skipSysset(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
--
Gitblit v1.8.0