package
0.0.0-20211121224133-8c3e90fc2b6a
Repository: https://github.com/spatialcurrent/go-pipe.git
Documentation: pkg.go.dev

# Functions

IteratorToWriter reads objects from the provided iterator and writes them to the provided writer.
NewBufferWriter returns a new BufferWriter with the given capacity.
NewBuilder returns a new builder.
NewChannelIterator returns a new ChannelIterator.
No description provided by the author
No description provided by the author
No description provided by the author
NewLimitedIterator returns a new LimitIterator that serialy iterators through the given iterators.
NewMultiIterator returns a new MultiIterator that serialy iterators through the given iterators.
No description provided by the author
NewSetIterator returns a new SetIterator.
No description provided by the author
No description provided by the author
NewSliceIterator returns a new SliceIterator.
No description provided by the author
No description provided by the author
No description provided by the author
NewSyncWriter returns a new SyncWriter.
NewTransactionWriter returns a new TransactionWriter with the opener function and optional closer function.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BufferWriter wraps a buffer around an underlying writer.
Builder helps build a pipeline.
ChannelIterator iterates over a channel of values.
ChannelWriter passes each object to the callback function.
No description provided by the author
FunctionIterator provides a simple wrapper over a callback function to allow it to iterate.
FunctionWriter passes each object to the callback function.
LimitedIterator returns an iterator that reads up to a given number of objects from the underlying reader.
MultiIterator returns an Iterator that's the logical concatenation of the provided input iterators.
MultiWriter creates a writer that duplicates its writes to all the provided writers.
SetIterator iterates over the keys in a map.
SetWriter contains the WriteObject and Flush functions for writing objects as keys to a set.
SliceIterator iterates over an array or slice of values.
SliceWriter contains the WriteObject and Flush functions for writing objects to an underlying slice.
SyncWriter wraps a mutex around an underlying writer, so writes happen sequentially.
TransactionWriter opens up a transaction to the underlying writer and closes the underlying writer after the objects are written.

# Interfaces

BatchWriter contains the WriteObjects and Flush functions for writing a batch of objects.
Iterator contains the Next function that returns an object until it returns an io.EOF error.
Writer contains the WriteObject and Flush functions for writing objects.