Documentation
¶
Overview ¶
Package indexer orchestrates the scan → extract → resolve → store pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RepoRoot string
Index *db.Index
Verbose bool
Output io.Writer
Config *config.Config
OnProgress func(phase string, current, total int) // optional streaming callback
}
Config configures the indexer.
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer orchestrates the indexing pipeline.
func NewIndexer ¶
NewIndexer creates an Indexer with all language extractors and resolvers.
type ScannedFile ¶
type ScannedFile struct {
Path string // repo-relative path
AbsPath string // absolute path
ContentHash string // SHA-256 hex digest
Language string // detected language
LastModified int64 // Unix timestamp
SizeBytes int64
}
ScannedFile represents a discovered source file with its metadata.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner discovers and hashes source files in a repository.
func NewScanner ¶
NewScanner creates a Scanner for the given repository root. configIgnore is a list of path prefixes (with trailing slash) from config.
func (*Scanner) ScanAll ¶
func (s *Scanner) ScanAll() ([]ScannedFile, error)
ScanAll walks the entire repository and returns all recognized source files.
Click to show internal directories.
Click to hide internal directories.