mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-30 07:12:02 +08:00
18 lines
370 B
Go
18 lines
370 B
Go
package converter
|
|
|
|
// throughputConverter is an implementation of Converter that converts throughput
|
|
type throughputConverter struct {
|
|
}
|
|
|
|
func NewThroughputConverter() Converter {
|
|
return &throughputConverter{}
|
|
}
|
|
|
|
func (c *throughputConverter) Convert(v Value, to Unit) Value {
|
|
// There is no conversion to be done for throughput
|
|
return Value{
|
|
F: v.F,
|
|
U: to,
|
|
}
|
|
}
|