counter

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2015 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 Counter

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

func New

func New(writer io.Writer) *Counter

func NewWithCallback

func NewWithCallback(onWrite WriteCallback, writer io.Writer) *Counter

func (*Counter) Close

func (w *Counter) Close() error

func (*Counter) Count

func (w *Counter) Count() int64

func (*Counter) Write

func (w *Counter) Write(buffer []byte) (n int, err error)

type WriteCallback

type WriteCallback func(count int64)

Jump to

Keyboard shortcuts

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