iostats

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloserFunc

type CloserFunc func() error

CloserFunc makes it possible for function types to be used as io.Closer.

func (CloserFunc) Close

func (f CloserFunc) Close() error

Close calls f.

type CountReader

type CountReader struct {
	R io.Reader
	N int
}

CountReader is an io.Reader that counts how many bytes are read by calls to the Read method.

func (*CountReader) Read

func (r *CountReader) Read(b []byte) (n int, err error)

Read satisfies the io.Reader interface.

type CountWriter

type CountWriter struct {
	W io.Writer
	N int
}

CountWriter is an io.Writer that counts how many bytes are written by calls to the Write method.

func (*CountWriter) Write

func (w *CountWriter) Write(b []byte) (n int, err error)

Write satisfies the io.Writer interface.

type ReaderFunc

type ReaderFunc func([]byte) (int, error)

ReaderFunc makes it possible for function types to be used as io.Reader.

func (ReaderFunc) Read

func (f ReaderFunc) Read(b []byte) (int, error)

Read calls f(b).

type WriterFunc

type WriterFunc func([]byte) (int, error)

WriterFunc makes it possible for function types to be used as io.Writer.

func (WriterFunc) Write

func (f WriterFunc) Write(b []byte) (int, error)

Write calls f(b).

Jump to

Keyboard shortcuts

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