nullpool

package
v0.0.0-...-f9f6857 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NopWriteCloser

type NopWriteCloser struct {
	// contains filtered or unexported fields
}

func (*NopWriteCloser) Close

func (nwc *NopWriteCloser) Close() error

func (*NopWriteCloser) Write

func (nwc *NopWriteCloser) Write(buf []byte) (int, error)

type NullPool

type NullPool struct {
	// contains filtered or unexported fields
}

func New

func New(container *tlc.Container) *NullPool

func (*NullPool) Close

func (fp *NullPool) Close() error

func (*NullPool) GetReadSeeker

func (fp *NullPool) GetReadSeeker(fileIndex int64) (io.ReadSeeker, error)

func (*NullPool) GetReader

func (fp *NullPool) GetReader(fileIndex int64) (io.Reader, error)

func (*NullPool) GetSize

func (fp *NullPool) GetSize(fileIndex int64) int64

func (*NullPool) GetWriter

func (fp *NullPool) GetWriter(fileIndex int64) (io.WriteCloser, error)

type NullReader

type NullReader struct {
	// contains filtered or unexported fields
}

func (*NullReader) Read

func (nr *NullReader) Read(buf []byte) (int, error)

func (*NullReader) Seek

func (nr *NullReader) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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