kinesis-consumer/counter.go
2024-05-28 12:09:19 +02:00

14 lines
370 B
Go

package consumer
// Counter interface is used for exposing basic metrics from the scanner
// Deprecated. Will be removed in favor of prometheus in a future release.
type Counter interface {
Add(string, int64)
}
// noopCounter implements counter interface with discard
// Deprecated.
type noopCounter struct{}
// Deprecated
func (n noopCounter) Add(string, int64) {}