worker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WorkersPool

func WorkersPool(countWorkers int, fileNameC <-chan string, w HashWorker) <-chan FileHash

Types

type FileHash

type FileHash struct {
	Path string
	Hash string
}

type HashWorker

type HashWorker func(ind int, fileNameC <-chan string, hashC chan<- FileHash)

func NewWorker

func NewWorker(ctx context.Context, algName string, log *logrus.Logger) HashWorker

Jump to

Keyboard shortcuts

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