smartio

package module
v0.0.0-...-a059462 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2016 License: BSD-3-Clause Imports: 3 Imported by: 4

README

#smartio GoDoc Reader/Writer middleware for fine I/O tunning.

Download:

go get github.com/jaracil/smartio

##Description

Reader/Writer middleware for fine I/O tunning. (Alpha state, internal use only)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmartReader

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

func NewSmartReader

func NewSmartReader(reader io.Reader) *SmartReader

func (*SmartReader) GetLast

func (sr *SmartReader) GetLast() int64

func (*SmartReader) GetLimit

func (sr *SmartReader) GetLimit() int64

func (*SmartReader) GetTotal

func (sr *SmartReader) GetTotal() int64

func (*SmartReader) Read

func (sr *SmartReader) Read(p []byte) (n int, err error)

func (*SmartReader) SetLast

func (sr *SmartReader) SetLast(last int64) int64

func (*SmartReader) SetLimit

func (sr *SmartReader) SetLimit(limit int64) int64

func (*SmartReader) SetTotal

func (sr *SmartReader) SetTotal(total int64) int64

type SmartWriter

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

func NewSmartWriter

func NewSmartWriter(writer io.Writer) *SmartWriter

func (*SmartWriter) GetLast

func (sw *SmartWriter) GetLast() int64

func (*SmartWriter) GetTotal

func (sw *SmartWriter) GetTotal() int64

func (*SmartWriter) SetLast

func (sw *SmartWriter) SetLast(last int64) int64

func (*SmartWriter) SetTotal

func (sw *SmartWriter) SetTotal(total int64) int64

func (*SmartWriter) Write

func (sw *SmartWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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