forkers

package
v0.0.0-...-9e7b976 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForkersPool

type ForkersPool struct {
	In             chan *file.PreparedFile
	Out1           chan *file.FileLink
	Out2           chan *file.FileInfo
	Done           chan struct{}
	ForkToFileLink InToFileLink
	ForkToFileInfo InToFileInfo
	WorkersNumber  int
}

func (*ForkersPool) Run

func (fp *ForkersPool) Run(out1queue int, out2queue int, finished *sync.WaitGroup) (out1 chan *file.FileLink, out2 chan *file.FileInfo)

type InToFileInfo

type InToFileInfo func(result *file.PreparedFile) (*file.FileInfo, error)
type InToFileLink func(*file.PreparedFile) (*file.FileLink, error)

Jump to

Keyboard shortcuts

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