2023-06-20 08:23:17 +00:00
|
|
|
package blobovnicza
|
|
|
|
|
|
|
|
type Metrics interface {
|
2023-08-18 08:14:10 +00:00
|
|
|
IncOpenBlobovniczaCount()
|
|
|
|
DecOpenBlobovniczaCount()
|
2023-06-20 08:23:17 +00:00
|
|
|
|
2023-08-18 08:14:10 +00:00
|
|
|
AddOpenBlobovniczaSize(size uint64)
|
|
|
|
SubOpenBlobovniczaSize(size uint64)
|
2023-06-20 08:23:17 +00:00
|
|
|
}
|
|
|
|
|
2023-06-05 07:25:25 +00:00
|
|
|
type NoopMetrics struct{}
|
2023-06-20 08:23:17 +00:00
|
|
|
|
2023-08-18 08:14:10 +00:00
|
|
|
func (m *NoopMetrics) IncOpenBlobovniczaCount() {}
|
|
|
|
func (m *NoopMetrics) DecOpenBlobovniczaCount() {}
|
|
|
|
func (m *NoopMetrics) AddOpenBlobovniczaSize(uint64) {}
|
|
|
|
func (m *NoopMetrics) SubOpenBlobovniczaSize(uint64) {}
|