untypedchain

package
v0.0.0-...-a89a7b4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfig

func WithConfig(ctx context.Context, cfg any) context.Context

Types

type Aggregator

type Aggregator = internal.Aggregator

type Chain

type Chain = internal.Chain

func Aggregated

func Aggregated(f Aggregator, name ...string) Chain

func Conditional

func Conditional(cond Condition, f Chain, name ...string) Chain

func Exploded

func Exploded(f Exploder, name ...string) Chain

func Filtered

func Filtered(f Filter, name ...string) Chain

func Mapped

func Mapped(f Mapper, name ...string) Chain

func New

func New() Chain

func Parallel

func Parallel(f Chain, p processing.Processing, name ...string) Chain

func Sorted

func Sorted(f CompareFunc, name ...string) Chain

func Stable

func Stable(f Chain, p processing.Processing, name ...string) Chain

type CompareFunc

type CompareFunc = internal.CompareFunc

type Condition

type Condition = internal.Condition

type Executor

type Executor[T any] struct {
	// contains filtered or unexported fields
}

func For

func For[T any](seq iter.Seq[T]) *Executor[T]

For can be used to execute an untyped chain for a typed iterator (`For(it).Execute(chain))

func (*Executor[T]) Execute

func (e *Executor[T]) Execute(ctx context.Context, c Chain) iter.Seq[any]

func (*Executor[T]) ExecuteWithConfig

func (e *Executor[T]) ExecuteWithConfig(ctx context.Context, cfg any, c Chain) iter.Seq[any]

type Exploder

type Exploder = internal.Exploder

type Filter

type Filter = internal.Filter

type Mapper

type Mapper = internal.Mapper

type Processor

type Processor[R any] func(context.Context, iter.Seq[any]) R

type ProcessorFactory

type ProcessorFactory[R any] func() Processor[R]

type Sink

type Sink[R any] interface {
	Execute(context.Context, iter.Seq[any]) R
}

func NewSink

func NewSink[R any](c Chain, p ProcessorFactory[R]) Sink[R]

Jump to

Keyboard shortcuts

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