datastream

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: GPL-2.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Provides a composable data stream, which pipes multiple inputs to multiple outputs according to the defined compositions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposableDataStream

type ComposableDataStream struct {
	Name string
	// contains filtered or unexported fields
}

func NewClosedComposableDataStreamFromBuffer

func NewClosedComposableDataStreamFromBuffer(buffer *bytes.Buffer) *ComposableDataStream

func NewComposableDataStream

func NewComposableDataStream(name string, errorHandler func(error)) *ComposableDataStream

func (*ComposableDataStream) Bytes

func (stream *ComposableDataStream) Bytes() []byte

func (*ComposableDataStream) Close

func (stream *ComposableDataStream) Close()

func (*ComposableDataStream) Closed

func (stream *ComposableDataStream) Closed() bool

func (*ComposableDataStream) Completed

func (stream *ComposableDataStream) Completed() bool

func (*ComposableDataStream) Copy

func (stream *ComposableDataStream) Copy() io.Reader

func (*ComposableDataStream) CopyOrResult

func (stream *ComposableDataStream) CopyOrResult() io.Reader

func (*ComposableDataStream) Intercept

func (stream *ComposableDataStream) Intercept() io.ReadWriteCloser

func (*ComposableDataStream) Len

func (stream *ComposableDataStream) Len() int

func (*ComposableDataStream) MergeWith

func (stream *ComposableDataStream) MergeWith(newReader io.Reader)

func (*ComposableDataStream) Replace

func (stream *ComposableDataStream) Replace(reader io.Reader)

func (*ComposableDataStream) StartCopyingInto

func (stream *ComposableDataStream) StartCopyingInto(writer io.Writer)

func (*ComposableDataStream) String

func (stream *ComposableDataStream) String() string

func (*ComposableDataStream) Wait

func (stream *ComposableDataStream) Wait()

func (*ComposableDataStream) WriteCloser

func (stream *ComposableDataStream) WriteCloser() io.WriteCloser

type ComposableDataStreamIntercept

type ComposableDataStreamIntercept struct {
	// contains filtered or unexported fields
}

func NewComposableDataStreamIntercept

func NewComposableDataStreamIntercept(reader io.Reader, writer io.WriteCloser, errorHandler func(error)) *ComposableDataStreamIntercept

func (*ComposableDataStreamIntercept) Close

func (intercept *ComposableDataStreamIntercept) Close() error

func (*ComposableDataStreamIntercept) Read

func (intercept *ComposableDataStreamIntercept) Read(p []byte) (int, error)

func (*ComposableDataStreamIntercept) Write

func (intercept *ComposableDataStreamIntercept) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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