kinesis-consumer/counter.go

15 lines
370 B
Go
Raw Normal View History

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.
type Counter interface {
Add(string, int64)
}
// noopCounter implements counter interface with discard
2024-05-28 10:05:28 +00:00
// Deprecated.
type noopCounter struct{}
2024-05-28 10:05:28 +00:00
// Deprecated
func (n noopCounter) Add(string, int64) {}