ll

package
v0.0.0-...-b3b847c Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndRunFn

type EndRunFn[I any] func(I, Term)

type Ender

type Ender[I any] interface {
	Sink[I]
	Wait() error
}

func End

func End[I any](runFn EndRunFn[I]) Ender[I]

type MultiError

type MultiError struct {
	Errors []error
}

func (*MultiError) Error

func (m *MultiError) Error() string

type PipeRunFn

type PipeRunFn[I, O any] func(I, Sink[O])

type Piper

type Piper[I, O any] interface {
	Sink[I]
	Next(Sink[O])
}

func Pipe

func Pipe[I, O any](runFn PipeRunFn[I, O]) Piper[I, O]

type Sink

type Sink[T any] interface {
	Write(T)
	Term
}

type Starter

type Starter[I, O any] interface {
	Piper[I, O]
	Start() Starter[I, O]
}

func Start

func Start[I, O any](runFn PipeRunFn[I, O]) Starter[I, O]

type Term

type Term interface {
	Error(error)
	Done()
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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