Documentation ¶
Index ¶
- func Sink[T any](ctx context.Context, input <-chan T, handle SinkHandler[T], finalize Finalizer)
- func Source[T any](ctx context.Context, next SourceHandler[T], finalize Finalizer) <-chan T
- func Transform[I, O any](ctx context.Context, input <-chan I, fn TransformHandler[I, O], ...) <-chan O
- type Finalizer
- type Pipeline
- type SinkHandler
- type SourceHandler
- type TransformHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sink ¶
func Sink[T any](ctx context.Context, input <-chan T, handle SinkHandler[T], finalize Finalizer)
Types ¶
type Pipeline ¶
func NewPipeline ¶
type SinkHandler ¶
type SinkHandler[Item any] func(Item)
type SourceHandler ¶
type SourceHandler[Item any] func(chan<- Item)
type TransformHandler ¶
type TransformHandler[Input, Output any] func(Input, chan<- Output)
Click to show internal directories.
Click to hide internal directories.