scanner

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

internal/scanner/detect.go

internal/scanner/scanner.go

internal/scanner/walker.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScanError

type ScanError struct {
	Path  string
	Error error
}

type ScanResult

type ScanResult struct {
	Repos    []model.Repository
	Errors   []ScanError
	Duration int64 // milliseconds
}

type Scanner

type Scanner interface {
	Scan(ctx context.Context) ([]model.Repository, error)
	ScanPath(ctx context.Context, path string, maxDepth int) ([]model.Repository, error)
}

type Walker

type Walker struct {
	// contains filtered or unexported fields
}

func NewWalker

func NewWalker(cfg *config.Config) *Walker

func (*Walker) Scan

func (w *Walker) Scan(ctx context.Context) ([]model.Repository, error)

func (*Walker) ScanPath

func (w *Walker) ScanPath(ctx context.Context, root string, maxDepth int) ([]model.Repository, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL