frostfs-node/pkg/local_object_storage/blobovnicza/metrics.go
Dmitrii Stepanov 8318d90ad0 [#373] blobovniczatree: Add metrics
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2023-06-21 15:13:26 +03:00

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) {}