liuxiaolong
2019-11-28 2d21d126670c00fc6d58f47b0c88c2367f5c7a85
fileanalysis add alias and snapshot_url
2个文件已修改
204 ■■■■ 已修改文件
fileanalysis.pb.go 190 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fileanalysis.proto 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fileanalysis.pb.go
@@ -23,17 +23,19 @@
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type FileAnalysis struct {
    Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    Path       string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
    Type       int32  `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
    Sort       int32  `protobuf:"varint,5,opt,name=sort,proto3" json:"sort,omitempty"`
    IsRunning  bool   `protobuf:"varint,6,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"`
    Progress   int32  `protobuf:"varint,7,opt,name=progress,proto3" json:"progress,omitempty"`
    RuleType   int32  `protobuf:"varint,8,opt,name=ruleType,proto3" json:"ruleType,omitempty"`
    Status     int32  `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"`
    CreateTime string `protobuf:"bytes,10,opt,name=createTime,proto3" json:"createTime,omitempty"`
    UpdateTime string `protobuf:"bytes,11,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
    Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    Path        string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
    Type        int32  `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
    Sort        int32  `protobuf:"varint,5,opt,name=sort,proto3" json:"sort,omitempty"`
    Alias       string `protobuf:"bytes,6,opt,name=alias,proto3" json:"alias,omitempty"`
    SnapshotUrl string `protobuf:"bytes,7,opt,name=snapshot_url,json=snapshotUrl,proto3" json:"snapshot_url,omitempty"`
    IsRunning   bool   `protobuf:"varint,8,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"`
    Progress    int32  `protobuf:"varint,9,opt,name=progress,proto3" json:"progress,omitempty"`
    RuleType    int32  `protobuf:"varint,10,opt,name=ruleType,proto3" json:"ruleType,omitempty"`
    Status      int32  `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"`
    CreateTime  string `protobuf:"bytes,12,opt,name=createTime,proto3" json:"createTime,omitempty"`
    UpdateTime  string `protobuf:"bytes,13,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
}
func (m *FileAnalysis) Reset()         { *m = FileAnalysis{} }
@@ -102,6 +104,20 @@
        return m.Sort
    }
    return 0
}
func (m *FileAnalysis) GetAlias() string {
    if m != nil {
        return m.Alias
    }
    return ""
}
func (m *FileAnalysis) GetSnapshotUrl() string {
    if m != nil {
        return m.SnapshotUrl
    }
    return ""
}
func (m *FileAnalysis) GetIsRunning() bool {
@@ -214,28 +230,30 @@
func init() { proto.RegisterFile("fileanalysis.proto", fileDescriptor_4bee17140da7bca9) }
var fileDescriptor_4bee17140da7bca9 = []byte{
    // 323 bytes of a gzipped FileDescriptorProto
    0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcd, 0x4e, 0x32, 0x31,
    0x14, 0x86, 0xe9, 0x7c, 0xc0, 0x37, 0x1c, 0x09, 0x26, 0x35, 0x31, 0x8d, 0x89, 0x0d, 0x61, 0x61,
    0x66, 0xe5, 0xc6, 0x2b, 0xf0, 0xf7, 0x02, 0x2a, 0x7b, 0x53, 0x98, 0x23, 0x34, 0x29, 0xed, 0xa4,
    0xed, 0x98, 0x70, 0x0d, 0x6e, 0xbc, 0x01, 0xef, 0xc7, 0x25, 0x4b, 0x97, 0x06, 0x6e, 0xc4, 0xb4,
    0x03, 0x8a, 0xac, 0xe6, 0x3d, 0xcf, 0x33, 0x4d, 0x4f, 0xde, 0x02, 0x7d, 0x56, 0x1a, 0xa5, 0x91,
    0x7a, 0xe9, 0x95, 0xbf, 0xac, 0x9c, 0x0d, 0x96, 0xe6, 0xe9, 0xb3, 0xf0, 0xb3, 0xd1, 0x7b, 0x06,
    0xfd, 0x07, 0xa5, 0xf1, 0x7a, 0xfb, 0x03, 0x1d, 0x40, 0xa6, 0x4a, 0x46, 0x86, 0xa4, 0xe8, 0x89,
    0x4c, 0x95, 0x94, 0x42, 0xdb, 0xc8, 0x05, 0xb2, 0x2c, 0x91, 0x94, 0x23, 0xab, 0x64, 0x98, 0xb3,
    0x7f, 0x0d, 0x8b, 0x39, 0xb2, 0xb0, 0xac, 0x90, 0xb5, 0x87, 0xa4, 0xe8, 0x88, 0x94, 0x23, 0xf3,
    0xd6, 0x05, 0xd6, 0x69, 0x58, 0xcc, 0xf4, 0x1c, 0x40, 0xf9, 0x27, 0x57, 0x1b, 0xa3, 0xcc, 0x8c,
    0x75, 0x87, 0xa4, 0xc8, 0x45, 0x4f, 0x79, 0xd1, 0x00, 0x7a, 0x06, 0x71, 0xb7, 0x99, 0x43, 0xef,
    0xd9, 0xff, 0x74, 0xec, 0x67, 0x8e, 0xce, 0xd5, 0x1a, 0xc7, 0xf1, 0x9a, 0xbc, 0x71, 0xbb, 0x99,
    0x9e, 0x42, 0xd7, 0x07, 0x19, 0x6a, 0xcf, 0x7a, 0xc9, 0x6c, 0x27, 0xca, 0x01, 0xa6, 0x0e, 0x65,
    0xc0, 0xb1, 0x5a, 0x20, 0x83, 0xb4, 0xf0, 0x1e, 0x89, 0xbe, 0xae, 0xca, 0x9d, 0x3f, 0x6a, 0xfc,
    0x2f, 0x19, 0xbd, 0x12, 0x38, 0xd9, 0xef, 0xe7, 0x11, 0x43, 0x88, 0x7b, 0x16, 0x70, 0xfc, 0xa2,
    0x4a, 0xb4, 0xd1, 0xdd, 0x1b, 0x39, 0xd1, 0x98, 0x3a, 0xcb, 0xc5, 0x21, 0xa6, 0x17, 0x30, 0x48,
    0xe8, 0x4e, 0x39, 0x9c, 0x06, 0xeb, 0x96, 0xdb, 0x2a, 0x0f, 0x28, 0x1d, 0x41, 0x7f, 0x3a, 0x97,
    0xc6, 0xa0, 0xbe, 0xb5, 0xb5, 0x09, 0xa9, 0xdc, 0x8e, 0xf8, 0xc3, 0x6e, 0xd8, 0xc7, 0x9a, 0x93,
    0xd5, 0x9a, 0x93, 0xaf, 0x35, 0x27, 0x6f, 0x1b, 0xde, 0x5a, 0x6d, 0x78, 0xeb, 0x73, 0xc3, 0x5b,
    0x93, 0x6e, 0x7a, 0xd1, 0xab, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x21, 0x02, 0x8c, 0x26, 0xee,
    0x01, 0x00, 0x00,
    // 356 bytes of a gzipped FileDescriptorProto
    0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x4f, 0x6e, 0xe2, 0x30,
    0x14, 0xc6, 0x71, 0x86, 0x30, 0xe1, 0x91, 0x61, 0x24, 0xcf, 0xa8, 0xb2, 0x2a, 0x35, 0xa2, 0x2c,
    0xaa, 0xac, 0xba, 0xe9, 0x09, 0xfa, 0xf7, 0x00, 0x29, 0x5d, 0x23, 0x43, 0x5e, 0xc1, 0x92, 0xb1,
    0x23, 0xdb, 0xa9, 0xc4, 0x19, 0xba, 0xe9, 0xb1, 0xba, 0x64, 0x55, 0x75, 0x59, 0xc1, 0x45, 0x2a,
    0x3b, 0xd0, 0x52, 0x56, 0xf9, 0xbe, 0xdf, 0x2f, 0x51, 0x5e, 0xfc, 0x02, 0xf4, 0x51, 0x48, 0xe4,
    0x8a, 0xcb, 0xa5, 0x15, 0xf6, 0xbc, 0x32, 0xda, 0x69, 0x9a, 0x84, 0xcb, 0xc2, 0xce, 0x86, 0x6f,
    0x11, 0xa4, 0x77, 0x42, 0xe2, 0xe5, 0xf6, 0x06, 0xda, 0x87, 0x48, 0x94, 0x8c, 0x0c, 0x48, 0xde,
    0x2d, 0x22, 0x51, 0x52, 0x0a, 0x6d, 0xc5, 0x17, 0xc8, 0xa2, 0x40, 0x42, 0xf6, 0xac, 0xe2, 0x6e,
    0xce, 0x7e, 0x35, 0xcc, 0x67, 0xcf, 0xdc, 0xb2, 0x42, 0xd6, 0x1e, 0x90, 0x3c, 0x2e, 0x42, 0xf6,
    0xcc, 0x6a, 0xe3, 0x58, 0xdc, 0x30, 0x9f, 0xe9, 0x7f, 0x88, 0xb9, 0x14, 0xdc, 0xb2, 0x4e, 0x78,
    0xb8, 0x29, 0xf4, 0x14, 0x52, 0xab, 0x78, 0x65, 0xe7, 0xda, 0x8d, 0x6b, 0x23, 0xd9, 0xef, 0x20,
    0x7b, 0x3b, 0xf6, 0x60, 0x24, 0x3d, 0x01, 0x10, 0x76, 0x6c, 0x6a, 0xa5, 0x84, 0x9a, 0xb1, 0x64,
    0x40, 0xf2, 0xa4, 0xe8, 0x0a, 0x5b, 0x34, 0x80, 0x1e, 0x83, 0xff, 0xa8, 0x99, 0x41, 0x6b, 0x59,
    0x37, 0xbc, 0xef, 0xab, 0x7b, 0x67, 0x6a, 0x89, 0x23, 0x3f, 0x1f, 0x34, 0x6e, 0xd7, 0xe9, 0x11,
    0x74, 0xac, 0xe3, 0xae, 0xb6, 0xac, 0x17, 0xcc, 0xb6, 0xd1, 0x0c, 0x60, 0x6a, 0x90, 0x3b, 0x1c,
    0x89, 0x05, 0xb2, 0x34, 0xcc, 0xb3, 0x47, 0xbc, 0xaf, 0xab, 0x72, 0xe7, 0xff, 0x34, 0xfe, 0x9b,
    0x0c, 0x9f, 0x09, 0xfc, 0xdb, 0x3f, 0xd8, 0x7b, 0x74, 0xce, 0xcf, 0x99, 0xc3, 0xdf, 0x27, 0x51,
    0xa2, 0xf6, 0xee, 0x56, 0xf1, 0x89, 0xc4, 0x70, 0xd8, 0x49, 0x71, 0x88, 0xe9, 0x19, 0xf4, 0x03,
    0xba, 0x11, 0x06, 0xa7, 0x4e, 0x9b, 0xe5, 0x76, 0x07, 0x07, 0x94, 0x0e, 0x21, 0x9d, 0xce, 0xb9,
    0x52, 0x28, 0xaf, 0x75, 0xad, 0x5c, 0xd8, 0x4a, 0x5c, 0xfc, 0x60, 0x57, 0xec, 0x75, 0x9d, 0x91,
    0xd5, 0x3a, 0x23, 0x1f, 0xeb, 0x8c, 0xbc, 0x6c, 0xb2, 0xd6, 0x6a, 0x93, 0xb5, 0xde, 0x37, 0x59,
    0x6b, 0xd2, 0x09, 0xbf, 0xc2, 0xc5, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0x8d, 0x74, 0x6a,
    0x27, 0x02, 0x00, 0x00,
}
func (m *FileAnalysis) Marshal() (dAtA []byte, err error) {
@@ -281,8 +299,20 @@
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(m.Sort))
    }
    if len(m.Alias) > 0 {
        dAtA[i] = 0x32
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Alias)))
        i += copy(dAtA[i:], m.Alias)
    }
    if len(m.SnapshotUrl) > 0 {
        dAtA[i] = 0x3a
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.SnapshotUrl)))
        i += copy(dAtA[i:], m.SnapshotUrl)
    }
    if m.IsRunning {
        dAtA[i] = 0x30
        dAtA[i] = 0x40
        i++
        if m.IsRunning {
            dAtA[i] = 1
@@ -292,28 +322,28 @@
        i++
    }
    if m.Progress != 0 {
        dAtA[i] = 0x38
        dAtA[i] = 0x48
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(m.Progress))
    }
    if m.RuleType != 0 {
        dAtA[i] = 0x40
        dAtA[i] = 0x50
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(m.RuleType))
    }
    if m.Status != 0 {
        dAtA[i] = 0x48
        dAtA[i] = 0x58
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(m.Status))
    }
    if len(m.CreateTime) > 0 {
        dAtA[i] = 0x52
        dAtA[i] = 0x62
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.CreateTime)))
        i += copy(dAtA[i:], m.CreateTime)
    }
    if len(m.UpdateTime) > 0 {
        dAtA[i] = 0x5a
        dAtA[i] = 0x6a
        i++
        i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.UpdateTime)))
        i += copy(dAtA[i:], m.UpdateTime)
@@ -392,6 +422,14 @@
    }
    if m.Sort != 0 {
        n += 1 + sovFileanalysis(uint64(m.Sort))
    }
    l = len(m.Alias)
    if l > 0 {
        n += 1 + l + sovFileanalysis(uint64(l))
    }
    l = len(m.SnapshotUrl)
    if l > 0 {
        n += 1 + l + sovFileanalysis(uint64(l))
    }
    if m.IsRunning {
        n += 2
@@ -605,6 +643,70 @@
                }
            }
        case 6:
            if wireType != 2 {
                return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType)
            }
            var stringLen uint64
            for shift := uint(0); ; shift += 7 {
                if shift >= 64 {
                    return ErrIntOverflowFileanalysis
                }
                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 ErrInvalidLengthFileanalysis
            }
            postIndex := iNdEx + intStringLen
            if postIndex < 0 {
                return ErrInvalidLengthFileanalysis
            }
            if postIndex > l {
                return io.ErrUnexpectedEOF
            }
            m.Alias = string(dAtA[iNdEx:postIndex])
            iNdEx = postIndex
        case 7:
            if wireType != 2 {
                return fmt.Errorf("proto: wrong wireType = %d for field SnapshotUrl", wireType)
            }
            var stringLen uint64
            for shift := uint(0); ; shift += 7 {
                if shift >= 64 {
                    return ErrIntOverflowFileanalysis
                }
                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 ErrInvalidLengthFileanalysis
            }
            postIndex := iNdEx + intStringLen
            if postIndex < 0 {
                return ErrInvalidLengthFileanalysis
            }
            if postIndex > l {
                return io.ErrUnexpectedEOF
            }
            m.SnapshotUrl = string(dAtA[iNdEx:postIndex])
            iNdEx = postIndex
        case 8:
            if wireType != 0 {
                return fmt.Errorf("proto: wrong wireType = %d for field IsRunning", wireType)
            }
@@ -624,7 +726,7 @@
                }
            }
            m.IsRunning = bool(v != 0)
        case 7:
        case 9:
            if wireType != 0 {
                return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType)
            }
@@ -643,7 +745,7 @@
                    break
                }
            }
        case 8:
        case 10:
            if wireType != 0 {
                return fmt.Errorf("proto: wrong wireType = %d for field RuleType", wireType)
            }
@@ -662,7 +764,7 @@
                    break
                }
            }
        case 9:
        case 11:
            if wireType != 0 {
                return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
            }
@@ -681,7 +783,7 @@
                    break
                }
            }
        case 10:
        case 12:
            if wireType != 2 {
                return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType)
            }
@@ -713,7 +815,7 @@
            }
            m.CreateTime = string(dAtA[iNdEx:postIndex])
            iNdEx = postIndex
        case 11:
        case 13:
            if wireType != 2 {
                return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType)
            }
fileanalysis.proto
@@ -8,12 +8,14 @@
    string path         =3;
    int32  type         =4;
    int32  sort         =5;
    bool   is_running   =6;
    int32 progress      =7;
    int32 ruleType      =8;
    int32 status        =9;
    string createTime   =10;
    string updateTime   =11;
    string alias        =6;
    string snapshot_url =7;
    bool   is_running   =8;
    int32 progress      =9;
    int32 ruleType      =10;
    int32 status        =11;
    string createTime   =12;
    string updateTime   =13;
}
message FileAnalysisSetting {