Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoJDKConfigured = errors.New("no JDK configured")
Functions ¶
Types ¶
type ScanResult ¶
type ScanResult struct {
JDKs []JDK
Duration time.Duration
Scanned int // 实际扫描的目录数
Skipped int // 因权限等问题跳过的目录数
Excluded int // 因已存在或规则被排除的目录数
}
ScanResult 包含扫描操作的详细结果
func ScanJDKWithStats ¶
func ScanJDKWithStats(dir string) ScanResult
ScanJDKWithStats 使用健壮的并发模型执行JDK扫描并返回详细统计信息
type WorkerResult ¶
type WorkerResult struct {
FoundJDK *JDK
SubDirTasks []WorkerTask
IsSkipped bool
IsExcluded bool
}
WorkerResult 是工人完成任务后返回的结果
Click to show internal directories.
Click to hide internal directories.