workers

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package workers common structure for selina workers

Index

Constants

This section is empty.

Variables

View Source
var ErrNotTerminatedOnCloseInput = errors.New("not terminate on closed input")

ErrNotTerminatedOnCloseInput worker.Process does not finish when input channel is closed

View Source
var ErrOutputNotClosed = errors.New("output channel is not closed")

ErrOutputNotClosed worker.Process does not close output channel

View Source
var ErrProcessIgnoreCtx = errors.New("ignored context.Done")

ErrProcessIgnoreCtx worker.Process does not terminate when context is canceled

Functions

func ATProcessCancel

func ATProcessCancel(w selina.Worker) error

ATProcessCancel a worker must terminate and return context.Canceled when context is canceled

func ATProcessCloseInput

func ATProcessCloseInput(w selina.Worker) error

ATProcessCloseInput a worker must finish its job and return nil when input chanel (<-chan []byte )is closed

func ATProcessCloseOutput

func ATProcessCloseOutput(w selina.Worker) error

ATProcessCloseOutput a worker must close its output channel on exit

Types

This section is empty.

Directories

Path Synopsis
Package csv workers to read and write csv format
Package csv workers to read and write csv format
Package custom implements an user defined function
Package custom implements an user defined function
Package filesystem utilities for read and write files
Package filesystem utilities for read and write files

Jump to

Keyboard shortcuts

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