Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options interface { // ResettableReaderFn returns the reader function. SetResettableReaderFn(value ResettableReaderFn) Options // // ResettableReaderFn sets the reader function. ResettableReaderFn() ResettableReaderFn // ResettableWriterFn returns the writer function. SetResettableWriterFn(value ResettableWriterFn) Options // ResettableWriterFn sets the writer function. ResettableWriterFn() ResettableWriterFn }
Options are options for resettable readers and writers.
type ResettableReader ¶
ResettableReader is a resettable reader.
type ResettableReaderFn ¶
type ResettableReaderFn func(r io.Reader, opts ResettableReaderOptions) ResettableReader
ResettableReaderFn creates a resettable reader.
type ResettableReaderOptions ¶
type ResettableReaderOptions struct {
ReadBufferSize int
}
ResettableReaderOptions are options for a resettable reader.
type ResettableWriter ¶
ResettableWriter is a resettable writer.
type ResettableWriterFn ¶
type ResettableWriterFn func(r io.Writer, opts ResettableWriterOptions) ResettableWriter
ResettableWriterFn creates a resettable writer.
type ResettableWriterOptions ¶
type ResettableWriterOptions struct {
WriteBufferSize int
}
ResettableWriterOptions are options for a resettable writer.
Click to show internal directories.
Click to hide internal directories.