mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
13 lines
461 B
Go
13 lines
461 B
Go
|
package channelmetrics
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// noopCollector is a default implementation of the MetricsCollector interface
|
||
|
// for internal package use only.
|
||
|
type noopCollector struct{}
|
||
|
|
||
|
func (noopCollector) RecordProduceDuration(duration time.Duration) {}
|
||
|
func (noopCollector) RecordConsumeDuration(duration time.Duration) {}
|
||
|
func (noopCollector) RecordChannelLen(size int) {}
|
||
|
func (noopCollector) RecordChannelCap(capacity int) {}
|