traversal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWalker

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

func NewParallelFileWalker

func NewParallelFileWalker(inputPath string, workerCount int, workerFactory func(id int) QueueProcessor) *FileWalker

func (*FileWalker) Traverse

func (w *FileWalker) Traverse()

Traverse should be called to start processing the must-gather directory. This method will exist the CLI if an error is encountered.

type QueueProcessor

type QueueProcessor interface {
	ProcessQueue(queue chan workerInput, errorCh chan error)
}

func NewWorker

func NewWorker(id int, cleaner cleaner.Processor) QueueProcessor

type Traverser

type Traverser interface {
	Traverse()
}

type Worker

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

func (*Worker) ProcessQueue

func (w *Worker) ProcessQueue(queue chan workerInput, errorCh chan error)

Jump to

Keyboard shortcuts

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