pipe

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BuffSizeAlign = 1024 * 4
)
View Source
const (
	FileSizeAlign = 1024 * 1024 * 4
)

Variables

This section is empty.

Functions

func New

func New() (Reader, Writer)

func NewFilePipe

func NewFilePipe(fileSize int, f *os.File) (Reader, Writer)

func NewSize

func NewSize(buffSize int) (Reader, Writer)

Types

type Closer

type Closer interface {
	io.Closer
	CloseWithError(err error) error
}

type Reader

type Reader interface {
	io.Reader
	Closer
	Buffered() (int, error)
}

type Writer

type Writer interface {
	io.Writer
	Closer
	Available() (int, error)
}

Jump to

Keyboard shortcuts

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