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-08-18 10:01:27 +00:00
|
|
|
|
|
|
|
AddOpenBlobovniczaItems(items uint64)
|
|
|
|
SubOpenBlobovniczaItems(items 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 10:01:27 +00:00
|
|
|
func (m *NoopMetrics) IncOpenBlobovniczaCount() {}
|
|
|
|
func (m *NoopMetrics) DecOpenBlobovniczaCount() {}
|
|
|
|
func (m *NoopMetrics) AddOpenBlobovniczaSize(uint64) {}
|
|
|
|
func (m *NoopMetrics) SubOpenBlobovniczaSize(uint64) {}
|
|
|
|
func (m *NoopMetrics) AddOpenBlobovniczaItems(uint64) {}
|
|
|
|
func (m *NoopMetrics) SubOpenBlobovniczaItems(uint64) {}
|