Versions in this module Expand all Collapse all v0 v0.1.0 Oct 5, 2026 Changes in this version + var ErrSkippedItem = errors.New("skipped item") + type ChainProcessor interface + AddStep func(p Processor) + Process func(ctx context.Context) + func NewChainProcessor(errch chan<- error) ChainProcessor + type Consumer interface + Consume func(T) error + type Decorator interface + Decorate func(Ti) (To, error) + type EntryPoint interface + Start func(ctx context.Context, emit func(T) bool) error + type Flusher interface + Flush func() ([]To, error) + type Processor interface + func NewDecoratorN[Ti, To any](in <-chan Ti, out chan<- To, logic Decorator[Ti, To], n int) Processor + func NewDecorator[Ti, To any](in <-chan Ti, out chan<- To, logic Decorator[Ti, To]) Processor + func NewEnd[T any](in <-chan T, logic Consumer[T]) Processor + func NewEntryPoint[T any](out chan<- T, logic EntryPoint[T]) Processor + func NewSwitchDecoratorN[Ti, To any](in <-chan Ti, outs []chan<- To, logic SwitchDecorator[Ti, To], n int) Processor + func NewSwitchDecorator[Ti, To any](in <-chan Ti, outs []chan<- To, logic SwitchDecorator[Ti, To]) Processor + func NewSwitchN[T any](in <-chan T, outs []chan<- T, logic Switcher[T], n int) Processor + func NewSwitch[T any](in <-chan T, outs []chan<- T, logic Switcher[T]) Processor + type Stopper interface + Stop func() + type SwitchDecorator interface + Switch func(Ti) (int, To, error) + type Switcher interface + Switch func(T) (int, error)