Documentation
¶
Index ¶
- func SumStatMerger(numbersToMerge []interface{}) interface{}
- type Analyzer
- type Column
- type ColumnType
- type Config
- type Extension
- type FileAnalyzer
- type FileResultsEditor
- type Results
- type ResultsEditor
- type Row
- type RowData
- type StatAccumulatorFunction
- type View
- type ViewFactory
- type ViewFactoryFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SumStatMerger ¶
func SumStatMerger(numbersToMerge []interface{}) interface{}
Types ¶
type Analyzer ¶
type Analyzer interface {
Analyze() (*Results, error)
RootPath() string
AddDefinition(definition *definitions.Definition)
RegisterStatAccumulator(statType string, merger StatAccumulatorFunction)
RegisterView(viewFactory *ViewFactory)
RegisterFileAnalyzer(analyzer FileAnalyzer)
RegisterFileResultsEditor(editor FileResultsEditor)
RegisterResultsEditor(editor ResultsEditor)
}
type Column ¶
type Column struct {
Name string
Type ColumnType
}
func DateColumn ¶
func FloatColumn ¶
func PositionInFileColumn ¶
func StringColumn ¶
type ColumnType ¶
type ColumnType int
const ( Integer ColumnType = iota Float String Date PositionInFile )
type Config ¶
type Config struct {
// RootPath is the path to the root directory of the codebase to analyze. If not specified, the current working directory is used.
RootPath string
// Extensions are the extensions to use for the analysis.
Extensions []Extension
}
Config represents the settings for an analysis.
type Extension ¶
Extension represents an extension to the analysis. All Archstats extensions must implement this interface and live outside the core package
type FileResultsEditor ¶
type Results ¶
type Results struct {
RootDirectory string
Snippets []*file.Snippet
SnippetsByFile file.SnippetGroup
SnippetsByDirectory file.SnippetGroup
SnippetsByComponent file.SnippetGroup
SnippetsByType file.SnippetGroup
Stats *file.Stats
StatsByFile file.StatsGroup
StatsByDirectory file.StatsGroup
StatsByComponent file.StatsGroup
Connections []*component.Connection
ConnectionsFrom map[string][]*component.Connection
ConnectionsTo map[string][]*component.Connection
FileToComponent map[string]string
FileToDirectory map[string]string
ComponentToFiles map[string][]string
DirectoryToFiles map[string][]string
ComponentGraph *component.Graph
Views []*View
// contains filtered or unexported fields
}
Results represents the results of an analysis in pre-aggregated form.
func (*Results) GetDefinition ¶
func (r *Results) GetDefinition(str string) *definitions2.Definition
func (*Results) GetDefinitions ¶
func (r *Results) GetDefinitions() map[string]*definitions2.Definition
func (*Results) GetViewFactories ¶
func (r *Results) GetViewFactories() []*ViewFactory
type ResultsEditor ¶
type ResultsEditor interface {
EditResults(results *Results)
}
type StatAccumulatorFunction ¶
type StatAccumulatorFunction func(statsToMerge []interface{}) interface{}
type ViewFactory ¶
type ViewFactory struct {
Name string
CreateViewFunc ViewFactoryFunction
}
type ViewFactoryFunction ¶
Click to show internal directories.
Click to hide internal directories.