Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataFactory ¶
type MetadataFactory struct {
// contains filtered or unexported fields
}
func NewMetadataFactory ¶
func NewMetadataFactory( astQueryIDProvider interfaces.ASTQueryIDProvider, similarityIDProvider similarity.SimilarityIDProvider, sourceProvider interfaces.SourceFileRepo, methodLineProvider interfaces.MethodLineRepo, tmpDir string, ) *MetadataFactory
func (*MetadataFactory) GetMetadataRecord ¶
func (e *MetadataFactory) GetMetadataRecord(scanID string, queries []*Query) (*Record, error)
type MetadataProvider ¶
type Query ¶
func GetQueriesFromReport ¶
func GetQueriesFromReport(reportReader *report.CxXMLResults) []*Query
type Record ¶
type Record struct {
Queries []*RecordQuery `json:"queries"`
}
type RecordPath ¶
type RecordQuery ¶
type RecordQuery struct {
QueryID string `json:"queryId"`
Results []*RecordResult `json:"results"`
}
type RecordResult ¶
type RecordResult struct {
ResultID string `json:"resultId"`
Paths []*RecordPath `json:"paths"`
}
type SimilarityCalculationJob ¶
type SimilarityCalculationJob struct {
ResultID, PathID,
Filename1, Name1, Line1, Column1, MethodLine1,
Filename2, Name2, Line2, Column2, MethodLine2,
QueryID string
}
Click to show internal directories.
Click to hide internal directories.