Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map interface { // Add adds a new metric to the map. Add(key string, delta int64) // AddFloat adds a new metric to the map. AddFloat(key string, delta float64) // Get gets a Var from the Map. Get(key string) expvar.Var }
Map stores the desired metrics.
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics stores health metrics for the process. It has a gauge and counter metrics.
func (*Metrics) NewCounter ¶
NewCounter returns a func to be used increment the counter total.
Click to show internal directories.
Click to hide internal directories.