2018-07-29 05:53:33 +00:00
|
|
|
package consumer
|
|
|
|
|
|
|
|
|
|
// Counter interface is used for exposing basic metrics from the scanner
|
2024-05-28 10:05:28 +00:00
|
|
|
// Deprecated. Will be removed in favor of prometheus in a future release.
|
2018-07-29 05:53:33 +00:00
|
|
|
type Counter interface {
|
|
|
|
|
Add(string, int64)
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-29 17:13:03 +00:00
|
|
|
// noopCounter implements counter interface with discard
|
2024-05-28 10:05:28 +00:00
|
|
|
// Deprecated.
|
2018-07-29 05:53:33 +00:00
|
|
|
type noopCounter struct{}
|
|
|
|
|
|
2024-05-28 10:05:28 +00:00
|
|
|
// Deprecated
|
2018-07-29 05:53:33 +00:00
|
|
|
func (n noopCounter) Add(string, int64) {}
|