frostfs-node/internal/metrics/types.go

18 lines
230 B
Go
Raw Permalink Normal View History

package metrics
import (
"strconv"
)
type NullBool struct {
Bool bool
Valid bool // Valid is true if Bool is not NULL
}
func (v NullBool) String() string {
if !v.Valid {
return ""
}
return strconv.FormatBool(v.Bool)
}