worker

package
v1.6.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	OnStep      func(file os.FileInfo, readBytes int, take time.Duration)
	RateLimiter *rate.Limiter
	// contains filtered or unexported fields
}

Worker is the handler for reading tasks. It shall be !Send.

func New

func New(input <-chan tasks.ReadFile) Worker

func (*Worker) MainLoop

func (w *Worker) MainLoop(cx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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