file

package
v0.0.0-...-4540c30 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_NUMBER_OF_WORKERS = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Group   *sync.WaitGroup
	Ignore  *regexp.Regexp
	Options *cli.Options
	Workers *WorkerQueue
}

func NewHandler

func NewHandler(options *cli.Options) Handler

func (*Handler) Walk

func (this *Handler) Walk() error

type UnitOfWork

type UnitOfWork struct {
	File string
	From string
	To   string
}

type WorkerQueue

type WorkerQueue struct {
	Closed chan bool
	Group  *sync.WaitGroup
	Input  chan UnitOfWork
	Output *cli.Output
}

func (*WorkerQueue) Close

func (this *WorkerQueue) Close()

func (*WorkerQueue) Start

func (this *WorkerQueue) Start()

Jump to

Keyboard shortcuts

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