forked from TrueCloudLab/frostfs-node
[#451] metrics: Move to internal
`metrics` don't look like something others want to import. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
11a38a0a84
commit
81ea91de52
35 changed files with 14 additions and 14 deletions
17
internal/metrics/types.go
Normal file
17
internal/metrics/types.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue