Documentation
¶
Overview ¶
Package collector defines the Collector interface and a registry for managing available collectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collector ¶
type Collector interface {
// Name returns the unique name of this collector (e.g., "todos", "gitlog").
Name() string
// Collect scans the repository at repoPath and returns discovered signals.
Collect(ctx context.Context, repoPath string, opts signal.CollectorOpts) ([]signal.RawSignal, error)
}
Collector extracts raw signals from a repository.
type MetricsProvider ¶ added in v0.5.0
type MetricsProvider interface {
Metrics() any
}
MetricsProvider is an optional interface that collectors can implement to expose structured metrics from their analysis. The pipeline checks for this interface after Collect() returns and stores the result in CollectorResult.
Click to show internal directories.
Click to hide internal directories.