Documentation ¶
Overview ¶
Package io facilitates sharing io reader/writer/closers across workers.
Index ¶
- func NewXReadCloser(u io.ReadCloser) circuit.X
- func NewXReadWriteCloser(u io.ReadWriteCloser) circuit.X
- func NewXReadWriter(u io.ReadWriter) circuit.X
- func NewXReader(u io.Reader) circuit.X
- func NewXWriteCloser(u io.WriteCloser) circuit.X
- type XCloser
- type XReadCloser
- type XReadWriteCloser
- type XReadWriter
- type XReader
- type XWriteCloser
- type XWriter
- type YCloser
- type YReadCloser
- type YReadWriteCloser
- type YReadWriter
- type YReader
- type YWriteCloser
- type YWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewXReadCloser ¶
func NewXReadCloser(u io.ReadCloser) circuit.X
func NewXReadWriteCloser ¶
func NewXReadWriteCloser(u io.ReadWriteCloser) circuit.X
func NewXReadWriter ¶
func NewXReadWriter(u io.ReadWriter) circuit.X
func NewXWriteCloser ¶
func NewXWriteCloser(u io.WriteCloser) circuit.X
Types ¶
type XCloser ¶
XCloser is a cross-worker exportable object that exposes an underlying local io.Writer.
func NewXCloser ¶
NewXCloser attaches a finalizer to the object which calls Close. In cases when a cross-interface to this object is lost because of a failed remote worker, the attached finalizer will ensure that before we forget this object the channel it encloses will be closed.
type XReader ¶
XReader is a cross-worker exportable object that exposes an underlying local io.Reader.
type XWriter ¶
XWriter is a cross-worker exportable object that exposes an underlying local io.Writer.
type YReadCloser ¶
YReadCloser
func NewYReadCloser ¶
func NewYReadCloser(u interface{}) *YReadCloser
type YReadWriteCloser ¶
YReadWriteCloser
func NewYReadWriteCloser ¶
func NewYReadWriteCloser(u interface{}) *YReadWriteCloser
type YReadWriter ¶
YReadWriter
func NewYReadWriter ¶
func NewYReadWriter(u interface{}) *YReadWriter
type YWriteCloser ¶
YWriteCloser
func NewYWriteCloser ¶
func NewYWriteCloser(u interface{}) *YWriteCloser