16 lines
317 B
Go
16 lines
317 B
Go
package blobovnicza
|
|
|
|
type Metrics interface {
|
|
IncOpenCount()
|
|
DecOpenCount()
|
|
|
|
IncSize(size uint64)
|
|
DecSize(size uint64)
|
|
}
|
|
|
|
type NoopMetrics struct{}
|
|
|
|
func (m *NoopMetrics) IncOpenCount() {}
|
|
func (m *NoopMetrics) DecOpenCount() {}
|
|
func (m *NoopMetrics) IncSize(uint64) {}
|
|
func (m *NoopMetrics) DecSize(uint64) {}
|