stats

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountReader

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

func NewCountReader

func NewCountReader(r io.Reader, p *atomic2.Int64) *CountReader

func (*CountReader) Count

func (r *CountReader) Count() int64

func (*CountReader) Read

func (r *CountReader) Read(p []byte) (int, error)

func (*CountReader) ResetCounter

func (r *CountReader) ResetCounter() int64

type CountWriter

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

func NewCountWriter

func NewCountWriter(w io.Writer, p *atomic2.Int64) *CountWriter

func (*CountWriter) Count

func (w *CountWriter) Count() int64

func (*CountWriter) ResetCounter

func (w *CountWriter) ResetCounter() int64

func (*CountWriter) Write

func (w *CountWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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