walker

package
v0.35.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentStore

type DocumentStore interface {
	HasOpenDocuments(dirHandle document.DirHandle) (bool, error)
}

type PathStore

type PathStore interface {
	AwaitNextDir(ctx context.Context) (context.Context, document.DirHandle, error)
	RemoveDir(dir document.DirHandle) error
}

type Walker

type Walker struct {
	Collector *WalkerCollector
	// contains filtered or unexported fields
}

func NewWalker

func NewWalker(fs fs.ReadDirFS, pathStore PathStore, eventBus *eventbus.EventBus) *Walker

func (*Walker) SetIgnoredDirectoryNames

func (w *Walker) SetIgnoredDirectoryNames(ignoredDirectoryNames []string)

func (*Walker) SetIgnoredPaths

func (w *Walker) SetIgnoredPaths(ignoredPaths []string)

func (*Walker) SetLogger

func (w *Walker) SetLogger(logger *log.Logger)

func (*Walker) StartWalking

func (w *Walker) StartWalking(ctx context.Context) error

func (*Walker) Stop

func (w *Walker) Stop()

type WalkerCollector

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

func NewWalkerCollector

func NewWalkerCollector() *WalkerCollector

func (*WalkerCollector) CollectError

func (wc *WalkerCollector) CollectError(err error)

func (*WalkerCollector) CollectJobId

func (wc *WalkerCollector) CollectJobId(jobId job.ID)

func (*WalkerCollector) ErrorOrNil

func (wc *WalkerCollector) ErrorOrNil() error

func (*WalkerCollector) JobIds

func (wc *WalkerCollector) JobIds() job.IDs

Jump to

Keyboard shortcuts

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