pipeline

package
v0.0.0-...-54f6fa4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUMOFDIGESTER = 10
)

Variables

This section is empty.

Functions

func Digester

func Digester(done <-chan struct{}, paths <-chan string, results chan<- Result)

func FilePathGenerator

func FilePathGenerator(done <-chan struct{}, search string) (<-chan string, <-chan error)

func Generator

func Generator(done <-chan struct{}, num ...int) <-chan int

func MD5ALL

func MD5ALL(done <-chan struct{}, root string) (map[string][md5.Size]byte, error)

func Merger

func Merger(done <-chan struct{}, chs ...<-chan int) <-chan int

func Processor

func Processor(done <-chan struct{}, in <-chan int) <-chan int

Types

type Result

type Result struct {
	Path   string
	Digest [md5.Size]byte
	Err    error
}

Jump to

Keyboard shortcuts

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