mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
11 lines
185 B
Go
11 lines
185 B
Go
|
package metrics
|
||
|
|
||
|
// Counters hold an int64 value that can be incremented and decremented.
|
||
|
type Counter interface {
|
||
|
Clear()
|
||
|
Count() int64
|
||
|
Dec(int64)
|
||
|
Inc(int64)
|
||
|
Snapshot() Counter
|
||
|
}
|