Documentation
¶
Index ¶
- type AggregateStage
- type BatchStage
- type ExpandStage
- type Expander
- type FanInStage
- type FanOutRoundRobinStage
- type FanOutStage
- type Filter
- type FilterStage
- type FlattenStage
- type LimitStage
- type ParallelTransformStage
- type ReduceStage
- type Reducer
- type Selector
- type SplitStage
- type TransformStage
- type Transformer
- type WindowedReduceStage
- type WindowedReducer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateStage ¶
func (AggregateStage[T]) Create ¶
func (s AggregateStage[T]) Create(ctx pipeline.Context, in <-chan T) <-chan []T
type BatchStage ¶
func (BatchStage[T]) Create ¶
func (s BatchStage[T]) Create(ctx pipeline.Context, in <-chan T) <-chan []T
type ExpandStage ¶
func (ExpandStage[In, Out]) Create ¶
func (s ExpandStage[In, Out]) Create(ctx pipeline.Context, in <-chan In) <-chan Out
type FanInStage ¶
func (FanInStage[T]) Create ¶
func (s FanInStage[T]) Create(ctx pipeline.Context, in pipeline.MultiChannelReceiver[T]) <-chan T
type FanOutRoundRobinStage ¶
func (FanOutRoundRobinStage[T]) Create ¶
func (s FanOutRoundRobinStage[T]) Create(ctx pipeline.Context, in <-chan T) pipeline.MultiChannelReceiver[T]
type FanOutStage ¶
func (FanOutStage[T]) Create ¶
func (s FanOutStage[T]) Create(ctx pipeline.Context, in <-chan T) pipeline.MultiChannelReceiver[T]
type FilterStage ¶
func (FilterStage[T]) Create ¶
func (s FilterStage[T]) Create(ctx pipeline.Context, in <-chan T) <-chan T
type FlattenStage ¶
func (FlattenStage[T]) Create ¶
func (s FlattenStage[T]) Create(ctx pipeline.Context, in <-chan []T) <-chan T
type LimitStage ¶
func (LimitStage[T]) Create ¶
func (s LimitStage[T]) Create(ctx pipeline.Context, in <-chan T) <-chan T
type ParallelTransformStage ¶
type ParallelTransformStage[In any, Out any] struct { Name string Buffer uint Workers uint Transformer Transformer[In, Out] }
func (ParallelTransformStage[In, Out]) Create ¶
func (s ParallelTransformStage[In, Out]) Create(ctx pipeline.Context, in <-chan In) <-chan Out
type ReduceStage ¶
type ReduceStage[T any, Acc any] struct { Name string Buffer uint Initial Acc Reducer Reducer[T, Acc] }
func (ReduceStage[T, Acc]) Create ¶
func (s ReduceStage[T, Acc]) Create(ctx pipeline.Context, in <-chan T) <-chan Acc
type SplitStage ¶
func (SplitStage[T]) Create ¶
func (s SplitStage[T]) Create(ctx pipeline.Context, in <-chan T) pipeline.MultiChannelReceiver[T]
type TransformStage ¶
type TransformStage[In any, Out any] struct { Name string Buffer uint Transformer Transformer[In, Out] }
func (TransformStage[In, Out]) Create ¶
func (s TransformStage[In, Out]) Create(ctx pipeline.Context, in <-chan In) <-chan Out
type WindowedReduceStage ¶ added in v4.0.1
type WindowedReduceStage[T any, Acc any] struct { Name string Buffer uint Initial Acc Reducer WindowedReducer[T, Acc] }
func (WindowedReduceStage[T, Acc]) Create ¶ added in v4.0.1
func (s WindowedReduceStage[T, Acc]) Create(ctx pipeline.Context, in <-chan T) <-chan Acc
type WindowedReducer ¶ added in v4.0.1
type WindowedReducer[T any, Acc any] func(context.Context, Acc, T) (nextAcc Acc, output Acc, emit bool, err error)
WindowedReducer is a function that takes a context, the current accumulator, and a new input value. It returns: - nextAcc: The updated accumulator state to be used for the next iteration. - output: The value to be sent to the output channel (only if emit is true). - emit: A boolean flag indicating whether 'output' should be sent downstream. - err: An error if processing fails.
Click to show internal directories.
Click to hide internal directories.