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
}
A Counter is a thread-safe counter implementation
func (*Counter) Incr ¶
Incr method increments the counter by some value
type RateCounter ¶
RateCounter -
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader counts the bytes read through it.
func NewReader ¶
func NewReader(r io.Reader, c *RateCounter) *Reader
NewReader makes a new Reader that counts the bytes read through it.
Click to show internal directories.
Click to hide internal directories.