Documentation
¶
Index ¶
- func Close(f interface{}) error
- func CloseWrap(f interface{}, name string, errp *error)
- func Fd(f interface{}) uintptr
- func Unwrap(x interface{}) interface{}
- func WalkWriter(w io.Writer, f func(io.Writer) error) error
- func WrapCloser(c io.Closer, msg string, args ...interface{}) io.Closer
- func WrapCloserFunc(cf func() error, msg string, args ...interface{}) io.Closer
- type CloserFunc
- type CountingIODiscard
- type DeLabels
- type DumpReader
- type Flusher
- type FlusherNoError
- type HeadWriter
- type MultiWriter
- type NopCloser
- type ReReader
- type ReWriter
- type ReadCloser
- type ReadSeeker
- type SandwichWriter
- type Seeker
- type TailWriter
- type Unwrapper
- type WrappedCloser
- type WriteCloser
- type WriteFlusher
- type WriterFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloserFunc ¶
type CloserFunc func() error
func (CloserFunc) Close ¶
func (c CloserFunc) Close() error
type CountingIODiscard ¶
CountingIODiscard discards data but counts writes and bytes. It's safe to use simultaneously (atomic operations are used).
func (*CountingIODiscard) ReportDisk ¶
func (w *CountingIODiscard) ReportDisk(b *testing.B)
type DumpReader ¶
func (*DumpReader) Close ¶
func (r *DumpReader) Close() (err error)
type Flusher ¶
type Flusher interface {
Flush() error
}
func WrapFlusherNoError ¶
func WrapFlusherNoError(f FlusherNoError) Flusher
type FlusherNoError ¶
type FlusherNoError interface {
Flush()
}
type HeadWriter ¶
func NewHeadWriter ¶
func NewHeadWriter(w io.Writer, n int) *HeadWriter
func (*HeadWriter) Unwrap ¶
func (w *HeadWriter) Unwrap() interface{}
type MultiWriter ¶
func NewMultiWriter ¶
func NewMultiWriter(ws ...io.Writer) (w MultiWriter)
func (MultiWriter) Append ¶
func (w MultiWriter) Append(ws ...io.Writer) MultiWriter
func (MultiWriter) Close ¶
func (w MultiWriter) Close() (err error)
func (MultiWriter) String ¶
func (w MultiWriter) String() string
func (MultiWriter) WalkWriter ¶ added in v0.23.2
func (w MultiWriter) WalkWriter(f func(w io.Writer) error) error
type ReReader ¶
type ReReader struct { ReadSeeker Hook func(old, cur int64) // contains filtered or unexported fields }
func NewReReader ¶
func NewReReader(r ReadSeeker) (*ReReader, error)
type ReadSeeker ¶
type SandwichWriter ¶ added in v0.22.1
func NewSandwichWriter ¶ added in v0.22.1
func NewSandwichWriter(filling io.Writer) *SandwichWriter
func (*SandwichWriter) Inner ¶ added in v0.22.1
func (w *SandwichWriter) Inner() io.Writer
func (*SandwichWriter) Unwrap ¶ added in v0.22.1
func (w *SandwichWriter) Unwrap() interface{}
type TailWriter ¶
func NewTailWriter ¶
func NewTailWriter(w io.Writer, n int) *TailWriter
func (*TailWriter) Flush ¶
func (w *TailWriter) Flush() (err error)
func (*TailWriter) Unwrap ¶
func (w *TailWriter) Unwrap() interface{}
type WrappedCloser ¶
func (WrappedCloser) Close ¶
func (c WrappedCloser) Close() (err error)
type WriteCloser ¶
func (WriteCloser) String ¶
func (w WriteCloser) String() string
type WriteFlusher ¶
Click to show internal directories.
Click to hide internal directories.