worker

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 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 OnStepHook

type OnStepHook func(file os.FileInfo, readBytes int, take time.Duration)

type Worker

type Worker struct {
	OnStep      OnStepHook
	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