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: 0

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