Point to a Counter, which could be used as a gauge
This commit is contained in:
parent
7c4a402be3
commit
d8d17da673
2
gauge.go
2
gauge.go
@ -27,6 +27,8 @@ func NewGauge(name string, f func() float64) *Gauge {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Gauge is a float64 gauge.
|
// Gauge is a float64 gauge.
|
||||||
|
//
|
||||||
|
// See also Counter, which could be used as a gauge with Set and Dec calls.
|
||||||
type Gauge struct {
|
type Gauge struct {
|
||||||
f func() float64
|
f func() float64
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user