Documentation ¶
Index ¶
- func Broadcast[I any](input Input[I], output ...Output[I]) <-chan error
- type FlattenStrat
- type Flow
- type Input
- func Concat[I any](input Input[I]) Input[[]I]
- func Duplicate[T any](i Input[T], count int) []Input[T]
- func First[I any](input Input[I]) Input[I]
- func FlattenMap[K comparable, V any](input Input[map[K]V], strat FlattenStrat) Input[map[K]V]
- func MapInput[I any, O any](input Input[I], mapper func(input I) (O, error)) Input[O]
- func Merge[T any](input ...Input[T]) Input[T]
- func NewInput[T any](i <-chan T, e <-chan error) Input[T]
- func Scan[I any, O any](input Input[I], initialValue O, scanner func(elem I, res O) (O, error)) Input[O]
- func Sequence[I any](input Input[[]I]) Input[I]
- type InputRaw
- type Inputable
- type Output
- type OutputRaw
- type Outputable
- type Pipe
- type Pipeable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FlattenStrat ¶
type FlattenStrat int
const ( ScanStrat FlattenStrat = 0 ConcatStrat FlattenStrat = 1 )
type Input ¶
func FlattenMap ¶
func FlattenMap[K comparable, V any](input Input[map[K]V], strat FlattenStrat) Input[map[K]V]
type Outputable ¶
type Pipe ¶
func ConcatPipe ¶
func FlattenMapPipe ¶
func FlattenMapPipe[K comparable, V any](strat FlattenStrat) Pipe[map[K]V, map[K]V]
Click to show internal directories.
Click to hide internal directories.