Files
o11y/pkg/units/converter_throughput.go
Vikrant GuptaandGitHub fa38f8b7cc chore(lint): enable godot and staticcheck (#10775)
* chore(lint): enable godot and staticcheck

* chore(lint): merge main and fix new lint issues in main
2026-03-31 09:11:49 +00:00

22 lines
435 B
Go

package units
// throughputConverter is an implementation of Converter that converts throughput.
type throughputConverter struct {
}
func NewThroughputConverter() Converter {
return &throughputConverter{}
}
func (*throughputConverter) Name() string {
return "throughput"
}
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,
}
}