logs-analyzer/signoz/pkg/query-service/converter/bool.go

21 lines
368 B
Go
Raw Permalink Normal View History

2024-09-02 22:47:30 +03:00
package converter
// boolConverter is a Converter implementation for bool
type boolConverter struct{}
func NewBoolConverter() Converter {
return &boolConverter{}
}
func (*boolConverter) Name() string {
return "bool"
}
func (c *boolConverter) Convert(v Value, to Unit) Value {
// There is no conversion to be done for bool
return Value{
F: v.F,
U: to,
}
}