scanner

package
v0.0.0-...-963e96b Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootScanContext = &ScanContext{
		Parent: nil,
		Path:   "",
		FS:     afero.NewOsFs(),
	}
)

Functions

This section is empty.

Types

type ProcessorFunc

type ProcessorFunc func(sc *ScanContext, path string) error

type ScanContext

type ScanContext struct {
	Parent *ScanContext
	Path   string
	FS     afero.Fs
}

func (*ScanContext) PathComponents

func (sc *ScanContext) PathComponents() []string

func (*ScanContext) Scan

func (sc *ScanContext) Scan(ctx context.Context, path string, processorFunc ProcessorFunc) error

func (*ScanContext) ScanFS

func (sc *ScanContext) ScanFS(ctx context.Context, processorFunc ProcessorFunc) error

Jump to

Keyboard shortcuts

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