forked from TrueCloudLab/frostfs-node
20 lines
489 B
Go
20 lines
489 B
Go
package pilorama
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/shard/mode"
|
|
)
|
|
|
|
type Metrics interface {
|
|
SetMode(m mode.Mode)
|
|
Close()
|
|
|
|
AddMethodDuration(method string, d time.Duration, success bool)
|
|
}
|
|
|
|
type noopMetrics struct{}
|
|
|
|
func (m *noopMetrics) SetMode(mode.Mode) {}
|
|
func (m *noopMetrics) Close() {}
|
|
func (m *noopMetrics) AddMethodDuration(string, time.Duration, bool) {}
|