MCPcopy
hub / github.com/SigNoz/signoz / Converter

Interface Converter

pkg/units/converter.go:13–19  ·  view source on GitHub ↗

Converter converts values from one unit to another.

Source from the content-addressed store, hash-verified

11
12// Converter converts values from one unit to another.
13type Converter interface {
14 // Convert converts the given value to the given unit
15 Convert(v Value, to Unit) Value
16
17 // Name returns the name of the converter
18 Name() string
19}
20
21// noneConverter is a converter that does not convert.
22type noneConverter struct{}

Callers 8

convertToRuleUnitMethod · 0.65
TestPercentConverterFunction · 0.65
TestDurationConvertFunction · 0.65
TestDataRateFunction · 0.65
TestDataFunction · 0.65
TestEscapeNoValueFunction · 0.65

Implementers 7

durationConverterpkg/units/converter_time.go
dataConverterpkg/units/converter_data.go
percentConverterpkg/units/converter_percent.go
dataRateConverterpkg/units/converter_data_rate.go
noneConverterpkg/units/converter.go
boolConverterpkg/units/converter_bool.go
throughputConverterpkg/units/converter_throughput.go

Calls

no outgoing calls

Tested by

no test coverage detected