Documentation ¶
Overview ¶
Package stats provides a simple method for exporting statistics to HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var S = &Stats{vars: map[string]*Stat{}}
S is a Stats singleton.
Functions ¶
This section is empty.
Types ¶
type Stat ¶
type Stat struct {
// contains filtered or unexported fields
}
Stat provides a method of exporting a single named variable.
func (*Stat) IncrementBy ¶
IncrementBy increments this stat by the given delta.
Click to show internal directories.
Click to hide internal directories.