Dmitrii Stepanov
f2811f8585
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 1m29s
Build / Build Components (1.21) (pull_request) Successful in 3m23s
DCO action / DCO (pull_request) Successful in 3m50s
Tests and linters / Tests (1.21) (pull_request) Successful in 4m27s
Tests and linters / Lint (pull_request) Successful in 4m48s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m6s
Tests and linters / Staticcheck (pull_request) Successful in 5m8s
Tests and linters / Tests with -race (pull_request) Successful in 5m38s
Build / Build Components (1.20) (pull_request) Successful in 7m46s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
21 lines
626 B
Go
21 lines
626 B
Go
package blobovnicza
|
|
|
|
type Metrics interface {
|
|
IncOpenBlobovniczaCount()
|
|
DecOpenBlobovniczaCount()
|
|
|
|
AddOpenBlobovniczaSize(size uint64)
|
|
SubOpenBlobovniczaSize(size uint64)
|
|
|
|
AddOpenBlobovniczaItems(items uint64)
|
|
SubOpenBlobovniczaItems(items uint64)
|
|
}
|
|
|
|
type NoopMetrics struct{}
|
|
|
|
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) {}
|