Permalink
Browse files
metrics: add Val and Set to Counter interface
- Loading branch information...
Showing
with
3 additions
and
0 deletions.
-
+3
−0
metrics.go
|
|
@@ -291,6 +291,9 @@ type PCPMetric interface { |
|
|
type Counter interface {
|
|
|
Metric
|
|
|
|
|
|
+ Val() int64
|
|
|
+ Set(int64) error
|
|
|
+
|
|
|
Inc(int64) error
|
|
|
MustInc(int64)
|
|
|
|
|
|
|
0 comments on commit
8e9421d